2023-01-23 04:13:39 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- GRID :
|
|
|
|
|
2023-01-29 19:25:14 +03:00
|
|
|
minetest.register_node("fortification:grid", {
|
2023-01-23 04:13:39 +03:00
|
|
|
drawtype = "nodebox",
|
2023-01-29 19:25:14 +03:00
|
|
|
description = "Grid",
|
2023-01-23 04:13:39 +03:00
|
|
|
tiles = {"grid.png"},
|
|
|
|
-- light_source = 4, -- somente para identificar o bloco
|
|
|
|
groups = {cracky = 3},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
walkable = true,
|
|
|
|
-- damage_per_second = 1,
|
|
|
|
drop = "fortification:wirefence",
|
2023-01-24 19:55:52 +03:00
|
|
|
sounds = default.node_sound_metal_defaults(),
|
|
|
|
|
2023-01-23 04:13:39 +03:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
-- esqueda,altura,tras..,direita ,negativo aumenta para baixo, positivo aumenta para cima
|
|
|
|
fixed = {-0.5, -0.5, 0.3, 0.5, 0.5, 0.5},
|
|
|
|
},
|
|
|
|
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, 0.45, 0.5, 0.5, 0.5},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({ ------ CRaFT
|
|
|
|
type = "shaped",
|
2023-01-27 22:07:50 +03:00
|
|
|
output = "fortification:grid 6",
|
2023-01-23 04:13:39 +03:00
|
|
|
recipe = {
|
2023-01-27 22:07:50 +03:00
|
|
|
{"fortification:barbed_wire","fortification:barbed_wire","fortification:barbed_wire"},
|
|
|
|
{"fortification:barbed_wire","fortification:barbed_wire","fortification:barbed_wire"},
|
2023-01-23 04:13:39 +03:00
|
|
|
{"default:steel_ingot","","default:steel_ingot"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
-- BARBED WIRE :
|
|
|
|
|
|
|
|
minetest.register_node("fortification:barbed_wire", {
|
|
|
|
drawtype = "plantlike",
|
|
|
|
description = "Barbed Wire",
|
|
|
|
tiles = {"barbed_wire.png"},
|
|
|
|
-- light_source = 4, -- somente para identificar o bloco
|
|
|
|
groups = {cracky = 3},
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = true,
|
2023-01-29 19:25:14 +03:00
|
|
|
damage_per_second = 3,
|
2023-01-23 04:13:39 +03:00
|
|
|
drop = "fortification:barbed_wire",
|
2023-01-24 19:55:52 +03:00
|
|
|
sounds = default.node_sound_metal_defaults(),
|
|
|
|
|
2023-01-23 04:13:39 +03:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
-- esqueda,altura,tras..,direita ,negativo aumenta para baixo, positivo aumenta para cima
|
|
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.2, 0.3},
|
|
|
|
},
|
|
|
|
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.2, 0.3},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({ ------ CRaFT
|
|
|
|
type = "shaped",
|
2023-01-27 22:07:50 +03:00
|
|
|
output = "fortification:barbed_wire 4",
|
2023-01-23 04:13:39 +03:00
|
|
|
recipe = {
|
|
|
|
{"","default:steel_ingot",""},
|
|
|
|
{"default:steel_ingot","","default:steel_ingot"},
|
|
|
|
{"","default:steel_ingot",""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---- SAND BAG :
|
|
|
|
|
|
|
|
minetest.register_node("fortification:sandbag", {
|
|
|
|
description = "Sand Bag",
|
|
|
|
tiles = {"sandbag.png"},
|
|
|
|
-- light_source = 4, -- somente para identificar o bloco
|
|
|
|
groups = {cracky = 3},
|
|
|
|
drop = "fortification:sandbag",
|
2023-01-24 19:55:52 +03:00
|
|
|
sounds = default.node_sound_sand_defaults(),
|
2023-01-23 04:13:39 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({ ------ CRaFT
|
|
|
|
type = "shaped",
|
2023-01-27 22:07:50 +03:00
|
|
|
output = "fortification:sandbag",
|
2023-01-23 04:13:39 +03:00
|
|
|
recipe = {
|
2023-01-27 22:07:50 +03:00
|
|
|
{"farming:string","farming:string","farming:string"},
|
|
|
|
{"farming:string","group:sand","farming:string"},
|
|
|
|
{"farming:string","farming:string","farming:string"}
|
2023-01-23 04:13:39 +03:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
---- METAL WALL :
|
|
|
|
minetest.register_node("fortification:metal_wall", {
|
|
|
|
description = "Metal Wall",
|
|
|
|
tiles = {"metal_wallpng.png"},
|
|
|
|
-- light_source = 4, -- somente para identificar o bloco
|
|
|
|
groups = {cracky = 3},
|
|
|
|
drop = "fortification:metal_wall",
|
2023-01-24 19:55:52 +03:00
|
|
|
sounds = default.node_sound_metal_defaults(),
|
2023-01-23 04:13:39 +03:00
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({ ------ CRaFT
|
|
|
|
type = "shaped",
|
2023-01-27 22:07:50 +03:00
|
|
|
output = "fortification:metal_wall 8",
|
2023-01-23 04:13:39 +03:00
|
|
|
recipe = {
|
|
|
|
{"default:steelblock","default:steelblock",""},
|
|
|
|
{"default:steelblock","default:steelblock",""},
|
|
|
|
{"","",""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
-- BADED WIRE : ---------------------------------------------------------------
|
2023-01-29 19:25:14 +03:00
|
|
|
minetest.register_node("fortification:wirefence", {
|
|
|
|
description = "Wire fence",
|
2023-01-23 04:13:39 +03:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "wire.obj",
|
|
|
|
--inventory_image = "",
|
2023-01-24 19:55:52 +03:00
|
|
|
--wield_image = "barbed_wire.png",
|
2023-01-23 04:13:39 +03:00
|
|
|
tiles = {"barbed-wire.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
--on_place = minetest.rotate_node,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = true,
|
|
|
|
floodable = false,
|
|
|
|
damage_per_second =2,
|
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
2023-01-29 19:25:14 +03:00
|
|
|
drop = "fortification:wirefence",
|
2023-01-24 19:55:52 +03:00
|
|
|
sounds = default.node_sound_metal_defaults(),
|
2023-01-23 04:13:39 +03:00
|
|
|
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
-- esqueda,altura,tras..,direita ,negativo aumenta para baixo, positivo aumenta para cima
|
2023-01-24 19:55:52 +03:00
|
|
|
fixed = {-0.3, -0.4, -0.3, 0.3, 0.2, 0.3},
|
2023-01-23 04:13:39 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
2023-01-24 19:55:52 +03:00
|
|
|
fixed = {-0.3, -0.4, -0.3, 0.3, 0.2, 0.3},
|
2023-01-23 04:13:39 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({ ------ CRaFT
|
|
|
|
type = "shaped",
|
2023-01-29 19:25:14 +03:00
|
|
|
output = "fortification:wirefence 8",
|
2023-01-23 04:13:39 +03:00
|
|
|
recipe = {
|
2023-01-29 19:25:14 +03:00
|
|
|
{"default:steel_ingot","fortification:barbed_wire ","default:steel_ingot"},
|
|
|
|
{"default:steel_ingot","fortification:barbed_wire ","default:steel_ingot"},
|
2023-01-23 04:13:39 +03:00
|
|
|
{"default:steel_ingot","","default:steel_ingot"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
-- punji_sticks: --------------------------------------------------------------
|
|
|
|
minetest.register_node("fortification:punji_sticks", {
|
|
|
|
description = "Punji Sticks",
|
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "punji_sticks.obj",
|
|
|
|
--inventory_image = "",
|
|
|
|
--wield_image = "punjisticks.png",
|
|
|
|
tiles = {"punjisticks.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
--on_place = minetest.rotate_node,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
floodable = false,
|
|
|
|
damage_per_second =2,
|
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
|
|
|
drop = "fortification:punji_sticks",
|
|
|
|
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
-- esqueda,altura,tras..,direita ,negativo aumenta para baixo, positivo aumenta para cima
|
|
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.2, 0.3},
|
|
|
|
},
|
|
|
|
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.2, 0.3},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({ ------ CRaFT
|
|
|
|
type = "shaped",
|
|
|
|
output = "fortification:punji_sticks",
|
|
|
|
recipe = {
|
|
|
|
{"","",""},
|
|
|
|
{"","",""},
|
|
|
|
{"default:stick","default:stick","default:stick"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|