From 556d0e6ee183f73492fc88ea8f4a93bd8edea5f8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 16 Jan 2017 21:21:47 +0100 Subject: [PATCH] Add minecart group --- API.md | 23 +++++++++++++---------- mods/craftingpack/crafting/creative.lua | 2 +- mods/mcl_minecarts/init.lua | 1 + 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/API.md b/API.md index f1260b29d..526939d45 100644 --- a/API.md +++ b/API.md @@ -16,14 +16,6 @@ This section explains all the used groups in this subgame. * `soil_sapling=1`: Artificial soil (such as farmland) for saplings. Some saplings will not grow on this * `soil_sugarcane=1`: Sugar canes will grow on this near water * `disable_suffocation=1`: Disables suffocation for full solid cubes (1) -* `food`: Item is a comestible item which can be consumed (healthy or unhealthy) - * `food=2`: Food - * `food=3`: Drink - * `food=1`: Other/unsure -* `eatable`: Item can be *directly* eaten by wielding + left click (`on_use=item_eat`). Rating is the satiation gain -* `ammo=1`: Item is used as ammo for a weapon -* `ammo_bow=1`: Item is used as ammo for bows -* `weapon_ranged=1`: Item is a ranged weapon ### Footnotes @@ -43,11 +35,11 @@ This section explains all the used groups in this subgame. * `wood_slab=1`: Slabs made out of a kind of wooden planks * `wood_stairs=1`: Stairs made out of a kind of wooden planks * `coal=1`: Coal of any kind (lumps only, not blocks) -* `boat=1`: Boat * `wool=1`: Wool (only full blocks) * `carpet=1:` (Wool) carpet -### Other groups +### Declarative groups +These groups are used mostly for informational purposes * `water=1`: Water * `lava=1`: Lava @@ -59,3 +51,14 @@ This section explains all the used groups in this subgame. * `compass`: Compass (rating doesn't matter) * `rail=1`: Rail * `music_record`: Music Disc (rating is track ID) +* `boat=1`: Boat +* `minecart=1`: Minecart +* `food`: Item is a comestible item which can be consumed (healthy or unhealthy) + * `food=2`: Food + * `food=3`: Drink + * `food=1`: Other/unsure +* `eatable`: Item can be *directly* eaten by wielding + left click (`on_use=item_eat`). Rating is the satiation gain +* `ammo=1`: Item is used as ammo for a weapon +* `ammo_bow=1`: Item is used as ammo for bows +* `weapon_ranged=1`: Item is a ranged weapon + diff --git a/mods/craftingpack/crafting/creative.lua b/mods/craftingpack/crafting/creative.lua index 278e4ed83..f024a24ad 100644 --- a/mods/craftingpack/crafting/creative.lua +++ b/mods/craftingpack/crafting/creative.lua @@ -54,7 +54,7 @@ function set_inv(filter, player) table.insert(creative_list, name) end elseif filter == "#rail" then - if def.groups.rail or def.groups.cart or def.groups.boat then + if def.groups.rail or def.groups.minecart or def.groups.boat then table.insert(creative_list, name) end elseif filter == "#misc" then diff --git a/mods/mcl_minecarts/init.lua b/mods/mcl_minecarts/init.lua index a6110aafb..41570271d 100644 --- a/mods/mcl_minecarts/init.lua +++ b/mods/mcl_minecarts/init.lua @@ -275,6 +275,7 @@ minetest.register_craftitem("mcl_minecarts:minecart", { itemstack:take_item() return itemstack end, + groups = { minecart = 1 }, }) minetest.register_craft({