From 5cca621f9bff05997de14a1cb8d63aba4d4ee9b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Thu, 25 Jan 2018 22:02:10 +0100 Subject: Added craft recipe --- init.lua | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 67bfe28..033deec 100644 --- a/init.lua +++ b/init.lua @@ -138,24 +138,6 @@ minetest.register_on_player_receive_fields(function(player, form, pressed) end end) -minetest.register_node("realestate:sale", { - description = "For Sale marker", - tiles = { - "feedlot_milker_top.png", - "feedlot_milker_top.png", - "feedlot_milker_side.png", - "feedlot_milker_side.png", - "feedlot_milker_side.png", - "feedlot_milker_side.png", - }, - paramtype = "light", --- on_construct = on_construct, - -- can_dig = can_dig, - after_place_node=after_place_node, - groups = {snappy = 3}, - tube = tube -}) - minetest.register_node("realestate:sign", { tiles = { "default_wood.png", @@ -167,6 +149,7 @@ minetest.register_node("realestate:sign", { }, drawtype = "nodebox", paramtype = "light", + description = "For sale sign", node_box = { type = "fixed", fixed = { @@ -184,3 +167,11 @@ minetest.register_node("realestate:sign", { end, }) +minetest.register_craft({ + output = "realestate:sign", + recipe = { + {"default:stick", "default:stick", "default:stick"}, + {"default:stick", "", "default:sign_wall_wood"}, + {"default:stick", "", ""} + } +}) -- cgit v1.2.3