mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2024-11-26 09:23:52 +01:00
remove all objects from creative inventory
This commit is contained in:
parent
5e46c7e1e5
commit
a02bf66cbd
8
init.lua
8
init.lua
@ -106,7 +106,7 @@ register_clay_block = function(name,formalname)
|
|||||||
description = formalname .. FORMALTYPES[1],
|
description = formalname .. FORMALTYPES[1],
|
||||||
tile_images = {"unifiedbricks_" .. TYPES[1] .. name .. ".png"},
|
tile_images = {"unifiedbricks_" .. TYPES[1] .. name .. ".png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3, not_in_creative_inventory=1},
|
||||||
drop = "unifiedbricks:" .. TYPES[2] .. name .. " 4",
|
drop = "unifiedbricks:" .. TYPES[2] .. name .. " 4",
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = "",
|
footstep = "",
|
||||||
@ -117,12 +117,14 @@ register_clay_lump = function(name,formalname)
|
|||||||
minetest.register_craftitem("unifiedbricks:" .. TYPES[2] .. name, {
|
minetest.register_craftitem("unifiedbricks:" .. TYPES[2] .. name, {
|
||||||
description = formalname .. FORMALTYPES[2],
|
description = formalname .. FORMALTYPES[2],
|
||||||
inventory_image = "unifiedbricks_" .. TYPES[2] .. name .. ".png",
|
inventory_image = "unifiedbricks_" .. TYPES[2] .. name .. ".png",
|
||||||
|
groups = {not_in_creative_inventory=1}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
register_brick = function(name,formalname)
|
register_brick = function(name,formalname)
|
||||||
minetest.register_craftitem("unifiedbricks:" .. TYPES[3] .. name, {
|
minetest.register_craftitem("unifiedbricks:" .. TYPES[3] .. name, {
|
||||||
description = formalname .. FORMALTYPES[3],
|
description = formalname .. FORMALTYPES[3],
|
||||||
inventory_image = "unifiedbricks_" .. TYPES[3] .. name .. ".png",
|
inventory_image = "unifiedbricks_" .. TYPES[3] .. name .. ".png",
|
||||||
|
groups = {not_in_creative_inventory=1}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
register_brick_block = function(name,formalname)
|
register_brick_block = function(name,formalname)
|
||||||
@ -130,7 +132,7 @@ register_brick_block = function(name,formalname)
|
|||||||
description = formalname .. FORMALTYPES[4],
|
description = formalname .. FORMALTYPES[4],
|
||||||
tile_images = {"unifiedbricks_" .. TYPES[4] .. name .. ".png"},
|
tile_images = {"unifiedbricks_" .. TYPES[4] .. name .. ".png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, not_in_creative_inventory=1},
|
||||||
drop = "unifiedbricks_" .. TYPES[3] .. name .." 4",
|
drop = "unifiedbricks_" .. TYPES[3] .. name .." 4",
|
||||||
sounds = default.node_sound_stone_defaults(),
|
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],
|
description = formalname .. FORMALTYPES[5],
|
||||||
tile_images = {"unifiedbricks_" .. TYPES[5] .. name .. ".png"},
|
tile_images = {"unifiedbricks_" .. TYPES[5] .. name .. ".png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, not_in_creative_inventory=1},
|
||||||
drop = {max_items = 4,
|
drop = {max_items = 4,
|
||||||
items={
|
items={
|
||||||
{items={"unifiedbricks:" .. TYPES[3] .. drop_one .." 2"}},
|
{items={"unifiedbricks:" .. TYPES[3] .. drop_one .." 2"}},
|
||||||
|
Loading…
Reference in New Issue
Block a user