zombies4test/nodes/init.lua

198 lines
4.3 KiB
Lua
Raw Normal View History

2023-01-23 04:13:39 +03:00
-- GRID :
--[[
minetest.register_node("fortification:grid", {
drawtype = "nodebox",
description = "Grid",
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:barbed_wire",
--sounds = default.node_sound_stone_defaults()
selection_box = {
type = "fixed",
-- esqueda,altura,tras..,direita ,negativo aumenta para baixo, positivo aumenta para cima
fixed = {-0.5, -0.5, 0.45, 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",
output = "fortification:grid",
recipe = {
{"default:steel_ingot","","default:steel_ingot"},
{"","default:steel_ingot",""},
{"default:steel_ingot","","default:steel_ingot"}
}
})
]]
2023-01-24 19:55:52 +03:00
2023-01-27 22:07:50 +03:00
---- white block :
minetest.register_node("nodes:whiteblock", {
description = "White Block",
tiles = {"white_block.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodes:road",
sounds = default.node_sound_stone_defaults()
})
---- COAL STAIR :
minetest.register_node("nodes:stair_coal", {
description = "Stair Coal",
tiles = {"default_coal_block.png"},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "default:coal_lump",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
{-0.5, 0, 0, 0.5, 0.5, 0.5},
},
}
})
2023-01-24 19:55:52 +03:00
---- ROAD :
2023-01-23 04:13:39 +03:00
minetest.register_node("nodes:road", {
description = "Road",
tiles = {"road.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodes:road",
sounds = default.node_sound_stone_defaults()
})
minetest.register_craft({ ------ CRaFT
type = "shaped",
output = "nodes:road 9",
recipe = {
{"default:coal_lump","default:coal_lump","default:coal_lump"},
{"default:coal_lump","default:stone","default:coal_lump"},
{"default:coal_lump","default:coal_lump","default:coal_lump"}
}
})
2023-01-24 19:55:52 +03:00
---- ROAD 2 :
2023-01-23 04:13:39 +03:00
minetest.register_node("nodes:road2", {
description = "Road 2",
tiles = {"road_y.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodes:road2",
sounds = default.node_sound_stone_defaults()
})
minetest.register_craft({ ------ CRaFT
type = "shaped",
output = "nodes:road2 12",
recipe = {
{"nodes:road","dye:yellow","nodes:road"},
{"nodes:road","dye:yellow","nodes:road"},
{"nodes:road","dye:yellow","nodes:road"}
}
})
2023-01-24 19:55:52 +03:00
---- ROAD 2 :
minetest.register_node("nodes:road3", {
description = "Road 3",
tiles = {"curvedroad.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodes:road3",
sounds = default.node_sound_stone_defaults()
})
minetest.register_craft({ ------ CRaFT
type = "shaped",
2023-01-27 22:07:50 +03:00
output = "nodes:road3 12",
2023-01-24 19:55:52 +03:00
recipe = {
{"nodes:road","dye:yellow","nodes:road"},
{"nodes:road","dye:yellow","dye:yellow"},
{"nodes:road","nodes:road","nodes:road"}
}
})
2023-01-23 04:13:39 +03:00
2023-01-24 19:55:52 +03:00
---- Road Stop Line:
minetest.register_node("nodes:roadstopline", {
description = "Road Stop Line",
tiles = {"road_stop_line.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodes:roadstopline",
sounds = default.node_sound_stone_defaults()
})
minetest.register_craft({ ------ CRaFT
type = "shaped",
2023-01-27 22:07:50 +03:00
output = "nodes:roadstopline 12",
2023-01-24 19:55:52 +03:00
recipe = {
{"nodes:road","dye:white","nodes:road"},
{"nodes:road","dye:white","nodes:road"},
{"nodes:road","dye:white","nodes:road"}
}
})
---- SIDEWALK :
2023-01-23 04:13:39 +03:00
minetest.register_node("nodes:sidewalk", {
description = "Sidewalk",
tiles = {"sidewalk.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodes:sidewalk",
sounds = default.node_sound_stone_defaults()
})
2023-01-24 19:55:52 +03:00
2023-01-23 04:13:39 +03:00
minetest.register_craft({ ------ CRaFT
type = "shaped",
2023-01-27 22:07:50 +03:00
output = "nodes:sidewalk 6",
2023-01-23 04:13:39 +03:00
recipe = {
2023-01-27 22:07:50 +03:00
{"default:stone_block","default:stone_block","default:stone_block"},
{"default:stone_block","default:stone_block","default:stone_block"},
{"","",""}
2023-01-23 04:13:39 +03:00
}
})
2023-01-24 19:55:52 +03:00
2023-01-23 04:13:39 +03:00