remove all objects from creative inventory

This commit is contained in:
Vanessa Ezekowitz 2013-07-23 23:41:49 -04:00
parent 5e46c7e1e5
commit a02bf66cbd

@ -106,7 +106,7 @@ register_clay_block = function(name,formalname)
description = formalname .. FORMALTYPES[1],
tile_images = {"unifiedbricks_" .. TYPES[1] .. name .. ".png"},
is_ground_content = true,
groups = {crumbly=3},
groups = {crumbly=3, not_in_creative_inventory=1},
drop = "unifiedbricks:" .. TYPES[2] .. name .. " 4",
sounds = default.node_sound_dirt_defaults({
footstep = "",
@ -117,12 +117,14 @@ register_clay_lump = function(name,formalname)
minetest.register_craftitem("unifiedbricks:" .. TYPES[2] .. name, {
description = formalname .. FORMALTYPES[2],
inventory_image = "unifiedbricks_" .. TYPES[2] .. name .. ".png",
groups = {not_in_creative_inventory=1}
})
end
register_brick = function(name,formalname)
minetest.register_craftitem("unifiedbricks:" .. TYPES[3] .. name, {
description = formalname .. FORMALTYPES[3],
inventory_image = "unifiedbricks_" .. TYPES[3] .. name .. ".png",
groups = {not_in_creative_inventory=1}
})
end
register_brick_block = function(name,formalname)
@ -130,7 +132,7 @@ register_brick_block = function(name,formalname)
description = formalname .. FORMALTYPES[4],
tile_images = {"unifiedbricks_" .. TYPES[4] .. name .. ".png"},
is_ground_content = true,
groups = {cracky=3},
groups = {cracky=3, not_in_creative_inventory=1},
drop = "unifiedbricks_" .. TYPES[3] .. name .." 4",
sounds = default.node_sound_stone_defaults(),
})
@ -140,7 +142,7 @@ register_multicolor = function(name,formalname,drop_one,drop_two,drop_three)
description = formalname .. FORMALTYPES[5],
tile_images = {"unifiedbricks_" .. TYPES[5] .. name .. ".png"},
is_ground_content = true,
groups = {cracky=3},
groups = {cracky=3, not_in_creative_inventory=1},
drop = {max_items = 4,
items={
{items={"unifiedbricks:" .. TYPES[3] .. drop_one .." 2"}},