Add new group: not_in_craft_guide
This commit is contained in:
parent
64fe6f3f80
commit
d0207a6f69
3 changed files with 10 additions and 2 deletions
|
@ -300,7 +300,8 @@ function craftguide:get_init_items()
|
|||
local items_list, counter = {}, 0
|
||||
for name, def in pairs(reg_items) do
|
||||
local is_fuel = get_fueltime(name) > 0
|
||||
if (get_recipe(name).items or is_fuel)
|
||||
if (not def.groups.not_in_craft_guide or def.groups.not_in_raft_guide == 0)
|
||||
and (get_recipe(name).items or is_fuel)
|
||||
and def.description and def.description ~= "" then
|
||||
counter = counter + 1
|
||||
items_list[counter] = name
|
||||
|
|
|
@ -194,7 +194,9 @@ function mcstair.add(name, stairtiles)
|
|||
outer_groups.not_in_creative_inventory = 1
|
||||
local inner_groups = table.copy(outer_groups)
|
||||
outer_groups.stair = 2
|
||||
outer_groups.not_in_craft_guide = 1
|
||||
inner_groups.stair = 3
|
||||
inner_groups.not_in_craft_guide = 1
|
||||
local drop = node_def.drop or name
|
||||
local after_dig_node = function(pos, oldnode)
|
||||
local param = get_stair_param(oldnode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue