From 18cd2be89bd878bea5862c9354f9ab10714532c6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 1 Feb 2017 16:39:51 +0100 Subject: [PATCH] Add fire charge --- mods/mcl_fire/fire_charge.lua | 26 ++++++++++++++++++ mods/mcl_fire/fireworks_charge.png | Bin 0 -> 307 bytes mods/mcl_fire/flint_and_steel.lua | 2 +- mods/mcl_fire/init.lua | 1 + .../textures/mcl_fire_fire_charge.png | Bin 0 -> 1185 bytes 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 mods/mcl_fire/fire_charge.lua create mode 100644 mods/mcl_fire/fireworks_charge.png create mode 100644 mods/mcl_fire/textures/mcl_fire_fire_charge.png diff --git a/mods/mcl_fire/fire_charge.lua b/mods/mcl_fire/fire_charge.lua new file mode 100644 index 00000000..c556653e --- /dev/null +++ b/mods/mcl_fire/fire_charge.lua @@ -0,0 +1,26 @@ +-- Fire Charge +minetest.register_craftitem("mcl_fire:fire_charge", { + description = "Fire Charge", + inventory_image = "mcl_fire_fire_charge.png", + liquids_pointable = false, + stack_max = 64, + groups = { tool = 1 }, + on_use = function(itemstack, user, pointed_thing) + if pointed_thing.type == "node" then + if minetest.get_node(pointed_thing.under).name == "mcl_tnt:tnt" then + tnt.ignite(pointed_thing.under) + itemstack:take_item() + else + mcl_core.set_fire(pointed_thing) + itemstack:take_item() + end + end + return itemstack + end, +}) + +minetest.register_craft({ + type = 'shapeless', + output = 'mcl_fire:fire_charge 3', + recipe = { 'mcl_mobitems:blaze_powder', 'group:coal', 'mcl_core:gunpowder' }, +}) diff --git a/mods/mcl_fire/fireworks_charge.png b/mods/mcl_fire/fireworks_charge.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f508fef1809f0893a441fc2685d08947244fdf GIT binary patch literal 307 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4mJh`hT^KKFANL}zdT(WLn>~)oqmw_umX>3 zWQU^>W4T)b&$KdERqu7F%^L%6Gq>xzdQJYn&zHxSVM5)?5=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