From c515b58ca18d86f085732386cfca47c2226f5383 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sat, 3 Nov 2018 14:52:41 +0100 Subject: [PATCH] =?UTF-8?q?La=20dent=20s'obtient=20al=C3=A9atoirement=20en?= =?UTF-8?q?=20ramassant=20du=20sable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index b609a5c..35effc4 100644 --- a/init.lua +++ b/init.lua @@ -397,14 +397,26 @@ minetest.register_craft({ }) --teeth from sand, maybe fossilised? -minetest.register_craft({ - output = 'witchcraft:tooth 1', - recipe = { - {'default:desert_sand'}, - }, +minetest.override_item("default:sand", { + drop = { + max_items = 1, + items = { + { + items = {"witchcraft:tooth"}, + rarity = 30, + }, + { + items = {"default:sand"}, + } + } + }, }) - +minetest.register_craft({ + type = "shapeless", + output = "default:sand", + recipe = {"witchcraft:tooth"}, +}) --splash potions crafting