Difference between revisions of "Groups/Shared groups"
Jump to navigation
Jump to search
(add Misc category) |
(add color) |
||
Line 5: | Line 5: | ||
* <code>not_in_creative_inventory=1</code>: This item must not appear in the [https://wiki.minetest.net/index.php?title=Creative_inventory creative inventory] | * <code>not_in_creative_inventory=1</code>: This item must not appear in the [https://wiki.minetest.net/index.php?title=Creative_inventory creative inventory] | ||
* <code>not_in_craft_guide=1</code>: Crafting recipes which have this item as a result will not be shown in a [http://wiki.minetest.net/Crafting_guide crafting guide]. The item may still be shown as an ingredient. | * <code>not_in_craft_guide=1</code>: Crafting recipes which have this item as a result will not be shown in a [http://wiki.minetest.net/Crafting_guide crafting guide]. The item may still be shown as an ingredient. | ||
+ | |||
+ | === Colors === | ||
+ | For dyes, the color groups used in Minetest Game have been widely accepted. If you add a dye, you should add the appropriate groups. The groups have names like <code>basecolor_white</code>, <code>excolor_sky_blue</color> and <code>unicolor_dark_green</code>. | ||
+ | |||
+ | See [https://github.com/minetest/minetest_game/blob/master/game_api.txt game_api.txt], section “Dyes” for a detailed description and see the [https://github.com/minetest/minetest_game/tree/master/mods/dye/init.lua dye] mod for an example implementation. | ||
=== Object classification === | === Object classification === |
Revision as of 02:59, 31 May 2018
This a list of groups which are shared across multiple mods and games, or groups which have been accepted by the community to have a standard meaning. For the list of special groups, see Groups#Special groups.
not_in_creative_inventory=1
: This item must not appear in the creative inventorynot_in_craft_guide=1
: Crafting recipes which have this item as a result will not be shown in a crafting guide. The item may still be shown as an ingredient.
Colors
For dyes, the color groups used in Minetest Game have been widely accepted. If you add a dye, you should add the appropriate groups. The groups have names like basecolor_white
, excolor_sky_blue</color> and
unicolor_dark_green
.
See game_api.txt, section “Dyes” for a detailed description and see the dye mod for an example implementation.
Object classification
These groups are used to classify something. The rating is assumed to be 1. These groups mean that the item in question is something. E.g. the group “tree=1
” means the item is a tree trunk.
Basic nodes
tree
: Tree trunk
leaves
: Leaves, (pine) needles, and the like
sand
: Sand
water
: Water (source or flowing)
lava
: Lava (source or flowing)
Additional nodes
wood
: Block of wooden planks
wool
: Block of wool
sapling
: Sapling
flower
: Flower