1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01:00

Add missing not_in_creative_inventory group where appropriate (#2764)

This commit is contained in:
DS 2020-11-11 16:29:43 +01:00 committed by GitHub
parent 0a950c9932
commit 226e2d4c12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View File

@ -155,7 +155,8 @@ function beds.register_bed(name, def)
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
pointable = false, pointable = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 2,
not_in_creative_inventory = 1},
sounds = def.sounds or default.node_sound_wood_defaults(), sounds = def.sounds or default.node_sound_wood_defaults(),
drop = name .. "_bottom", drop = name .. "_bottom",
node_box = { node_box = {

View File

@ -4,9 +4,8 @@
local S = default.get_translator local S = default.get_translator
-- The hand -- The hand
minetest.register_item(":", { -- Override the hand item registered in the engine in builtin/game/register.lua
type = "none", minetest.override_item("", {
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5}, wield_scale = {x=1,y=1,z=2.5},
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.9, full_punch_interval = 0.9,

View File

@ -434,7 +434,7 @@ minetest.register_node("tnt:boom", {
light_source = default.LIGHT_MAX, light_source = default.LIGHT_MAX,
walkable = false, walkable = false,
drop = "", drop = "",
groups = {dig_immediate = 3}, groups = {dig_immediate = 3, not_in_creative_inventory = 1},
-- unaffected by explosions -- unaffected by explosions
on_blast = function() end, on_blast = function() end,
}) })
@ -531,7 +531,8 @@ minetest.register_node("tnt:gunpowder_burning", {
groups = { groups = {
dig_immediate = 2, dig_immediate = 2,
attached_node = 1, attached_node = 1,
connect_to_raillike = minetest.raillike_group("gunpowder") connect_to_raillike = minetest.raillike_group("gunpowder"),
not_in_creative_inventory = 1
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
on_timer = function(pos, elapsed) on_timer = function(pos, elapsed)
@ -678,7 +679,7 @@ function tnt.register_tnt(def)
light_source = 5, light_source = 5,
drop = "", drop = "",
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
groups = {falling_node = 1}, groups = {falling_node = 1, not_in_creative_inventory = 1},
on_timer = function(pos, elapsed) on_timer = function(pos, elapsed)
tnt.boom(pos, def) tnt.boom(pos, def)
end, end,