mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
add target crafting receipe
This commit is contained in:
parent
25f9baff2c
commit
8f5bb24771
1 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
local S = minetest.get_translator("mcl_target")
|
local S = minetest.get_translator("mcl_target")
|
||||||
|
|
||||||
|
local mod_farming = minetest.get_modpath("mcl_farming")
|
||||||
|
|
||||||
mcl_target = {}
|
mcl_target = {}
|
||||||
|
|
||||||
function mcl_target.hit(pos, time)
|
function mcl_target.hit(pos, time)
|
||||||
|
@ -55,3 +57,15 @@ minetest.register_node("mcl_target:target_on", {
|
||||||
_mcl_blast_resistance = 0.5,
|
_mcl_blast_resistance = 0.5,
|
||||||
_mcl_hardness = 0.5,
|
_mcl_hardness = 0.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
if mod_farming then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mcl_target:target_off",
|
||||||
|
recipe = {
|
||||||
|
{"", "mesecons:redstone", ""},
|
||||||
|
{"mesecons:redstone", "mcl_farming:hay_block", "mesecons:redstone"},
|
||||||
|
{"", "mesecons:redstone", ""},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
Loading…
Reference in a new issue