2021-05-29 17:12:33 +03:00
|
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
2019-03-08 02:46:35 +03:00
|
|
|
|
2017-12-05 17:52:35 +03:00
|
|
|
-- Red Nether Brick Fence
|
|
|
|
|
|
|
|
mcl_fences.register_fence_and_fence_gate(
|
|
|
|
"red_nether_brick_fence",
|
2019-03-08 02:46:35 +03:00
|
|
|
S("Red Nether Brick Fence"), S("Red Nether Brick Fence Gate"),
|
2017-12-05 17:52:35 +03:00
|
|
|
"mcl_fences_fence_red_nether_brick.png",
|
|
|
|
{pickaxey=1, deco_block=1, fence_nether_brick=1},
|
|
|
|
minetest.registered_nodes["mcl_nether:red_nether_brick"]._mcl_hardness,
|
|
|
|
minetest.registered_nodes["mcl_nether:red_nether_brick"]._mcl_blast_resistance,
|
|
|
|
{"group:fence_nether_brick"},
|
|
|
|
mcl_sounds.node_sound_stone_defaults(), "mcl_fences_nether_brick_fence_gate_open", "mcl_fences_nether_brick_fence_gate_close", 1, 1,
|
|
|
|
"mcl_fences_fence_gate_red_nether_brick.png")
|
|
|
|
|
|
|
|
mcl_fences.register_fence_gate(
|
|
|
|
"nether_brick_fence",
|
2019-03-08 02:46:35 +03:00
|
|
|
S("Nether Brick Fence Gate"),
|
2017-12-05 17:52:35 +03:00
|
|
|
"mcl_fences_fence_gate_nether_brick.png",
|
|
|
|
{pickaxey=1, deco_block=1, fence_nether_brick=1},
|
|
|
|
minetest.registered_nodes["mcl_nether:nether_brick"]._mcl_hardness,
|
|
|
|
minetest.registered_nodes["mcl_nether:nether_brick"]._mcl_blast_resistance,
|
|
|
|
mcl_sounds.node_sound_stone_defaults(), "mcl_fences_nether_brick_fence_gate_open", "mcl_fences_nether_brick_fence_gate_close", 1, 1)
|
|
|
|
|
2017-12-05 19:35:10 +03:00
|
|
|
-- Crafting
|
|
|
|
|
2017-12-05 17:52:35 +03:00
|
|
|
minetest.register_craft({
|
2021-05-29 17:12:33 +03:00
|
|
|
output = "mclx_fences:red_nether_brick_fence 6",
|
2017-12-05 17:52:35 +03:00
|
|
|
recipe = {
|
2018-12-03 19:38:32 +03:00
|
|
|
{"mcl_nether:red_nether_brick", "mcl_nether:netherbrick", "mcl_nether:red_nether_brick"},
|
|
|
|
{"mcl_nether:red_nether_brick", "mcl_nether:netherbrick", "mcl_nether:red_nether_brick"},
|
2017-12-05 17:52:35 +03:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-29 17:12:33 +03:00
|
|
|
output = "mclx_fences:red_nether_brick_fence_gate",
|
2017-12-05 17:52:35 +03:00
|
|
|
recipe = {
|
|
|
|
{"mcl_nether:nether_wart_item", "mcl_nether:red_nether_brick", "mcl_nether:netherbrick"},
|
|
|
|
{"mcl_nether:netherbrick", "mcl_nether:red_nether_brick", "mcl_nether:nether_wart_item"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
2021-05-29 17:12:33 +03:00
|
|
|
output = "mclx_fences:red_nether_brick_fence_gate",
|
2017-12-05 17:52:35 +03:00
|
|
|
recipe = {
|
|
|
|
{"mcl_nether:netherbrick", "mcl_nether:red_nether_brick", "mcl_nether:nether_wart_item"},
|
|
|
|
{"mcl_nether:nether_wart_item", "mcl_nether:red_nether_brick", "mcl_nether:netherbrick"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-29 17:12:33 +03:00
|
|
|
output = "mclx_fences:nether_brick_fence_gate 2",
|
2017-12-05 17:52:35 +03:00
|
|
|
recipe = {
|
|
|
|
{"mcl_nether:netherbrick", "mcl_nether:nether_brick", "mcl_nether:netherbrick"},
|
|
|
|
{"mcl_nether:netherbrick", "mcl_nether:nether_brick", "mcl_nether:netherbrick"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-12-05 19:35:10 +03:00
|
|
|
|
|
|
|
-- Aliases for mcl_supplemental
|
|
|
|
minetest.register_alias("mcl_supplemental:red_nether_brick_fence", "mclx_fences:red_nether_brick_fence")
|
|
|
|
|
|
|
|
minetest.register_alias("mcl_supplemental:nether_brick_fence_gate", "mclx_fences:nether_brick_fence_gate")
|
|
|
|
minetest.register_alias("mcl_supplemental:nether_brick_fence_gate_open", "mclx_fences:nether_brick_fence_gate_open")
|
|
|
|
|
|
|
|
minetest.register_alias("mcl_supplemental:red_nether_brick_fence_gate", "mclx_fences:red_nether_brick_fence_gate")
|
|
|
|
minetest.register_alias("mcl_supplemental:red_nether_brick_fence_gate_open", "mclx_fences:red_nether_brick_fence_gate_open")
|