From 7db7ea543f497c0646883b0a26209f50fd29262a Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 26 Jul 2012 00:08:35 +0300 Subject: [PATCH] Remove some unwanted items from the creative inventory --- mods/default/init.lua | 4 ++-- mods/legacy/init.lua | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/default/init.lua b/mods/default/init.lua index 71c5d76..a8f58c0 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -747,7 +747,7 @@ minetest.register_node("default:dirt_with_grass_footsteps", { description = "Dirt with Grass and Footsteps", tiles = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, is_ground_content = true, - groups = {crumbly=3}, + groups = {crumbly=3, not_in_creative_inventory=1}, drop = 'default:dirt', sounds = default.node_sound_dirt_defaults({ footstep = {name="default_grass_footstep", gain=0.4}, @@ -1321,7 +1321,7 @@ minetest.register_node("default:furnace_active", { paramtype2 = "facedir", light_source = 8, drop = "default:furnace", - groups = {cracky=2}, + groups = {cracky=2, not_in_creative_inventory=1}, legacy_facedir_simple = true, sounds = default.node_sound_stone_defaults(), on_construct = function(pos) diff --git a/mods/legacy/init.lua b/mods/legacy/init.lua index 7f9088c..fa8f297 100644 --- a/mods/legacy/init.lua +++ b/mods/legacy/init.lua @@ -102,6 +102,7 @@ minetest.register_craftitem(":cooked_rat", { minetest.register_craftitem(":firefly", { description = "Firefly", inventory_image = "firefly.png", + groups = {not_in_creative_inventory=1}, on_drop = function(item, dropper, pos) minetest.env:add_firefly(pos) item:take_item()