From 6be3b1a2d8145fb72a67901c4c7443c20e9f9000 Mon Sep 17 00:00:00 2001 From: kilbith Date: Sun, 24 Aug 2014 12:11:35 +0200 Subject: [PATCH] Added a simple pizza Added a simple pizza : https://cdn.mediacru.sh/XSEOKLZkpCCe.png Textures : http://mamadou3.free.fr/pizza.zip --- init.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/init.lua b/init.lua index 8220529..e69df7d 100644 --- a/init.lua +++ b/init.lua @@ -633,6 +633,34 @@ minetest.register_node("food:cake_carrot", { } } }) + +minetest.register_node('food:pizza', { + description = S('Pizza'), + drawtype = 'nodebox', + tiles = { + 'pizza.png', + 'pizza_sides.png' + }, + paramtype = 'light', + walkable = true, + groups={food=3,crumbly=3}, + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -0.25, -0.5, -0.5, 0.25, -0.48, 0.5 }, + { -0.375, -0.5, -0.4375, 0.375, -0.48, 0.4375 }, + { -0.5, -0.5, -0.25, 0.5, -0.48, 0.25 }, + { -0.4375, -0.5, -0.375, 0.4375, -0.48, 0.375 }, + { -0.25, -0.5, -0.5, 0.25, -0.48, 0.5 }, + } + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 }, + }, + }) + food.craft({ type = "cooking", output = "food:cake",