From cbb5522f0590c95984f549328b49190deabab5d9 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Wed, 6 Apr 2016 19:15:51 +0200 Subject: [PATCH] [fences & default] Give default:fence_wood instead of fences' ones - crafting fences will give you default:fence_wood instead of fences:fence_wood - default:fence_wood is in the creative inventory now ; fences:fence_wood isn't any more --- minetestforfun_game/mods/default/nodes.lua | 3 +-- mods/fences/init.lua | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/minetestforfun_game/mods/default/nodes.lua b/minetestforfun_game/mods/default/nodes.lua index 81ee5239..4923587e 100755 --- a/minetestforfun_game/mods/default/nodes.lua +++ b/minetestforfun_game/mods/default/nodes.lua @@ -2213,8 +2213,7 @@ minetest.register_node("default:fence_wood", { type = "fixed", fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, }, - groups = {not_in_creative_inventory = 1, choppy = 2, oddly_breakable_by_hand = 2, - flammable = 2}, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, sounds = default.node_sound_wood_defaults(), }) diff --git a/mods/fences/init.lua b/mods/fences/init.lua index c80f7eb6..1553b384 100755 --- a/mods/fences/init.lua +++ b/mods/fences/init.lua @@ -101,7 +101,7 @@ minetest.register_node("fences:fence_wood", { inventory_image = "default_fence.png", wield_image = "default_fence.png", paramtype = "light", - groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1}, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_creative_inventory=1}, drop = 'fences:fence_wood', sunlight_propagates = true, drawtype = "nodebox", @@ -550,7 +550,7 @@ minetest.register_node("fences:fence_wood_13", { --right(2)+top(11)=13 }) - +--[[ minetest.register_craft({ output = 'fences:fence_wood 2', recipe = { @@ -558,7 +558,7 @@ minetest.register_craft({ {'default:stick', 'default:stick', 'default:stick'}, {'', '', ''}, } -}) +})]] minetest.register_craft({ output = 'fences:fencegate',