zombies4test/nodex/init.lua

260 lines
5.8 KiB
Lua
Raw Permalink 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
2023-03-05 07:16:53 +03:00
---- HOSPITAL BLOCK :
2023-01-27 22:07:50 +03:00
2023-02-02 16:48:14 +03:00
minetest.register_node("nodex:whiteblock", {
2023-01-27 22:07:50 +03:00
description = "White Block",
tiles = {"white_block.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
2023-03-05 07:16:53 +03:00
drop = "nodex:whiteblock",
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("nodex:greenblock", {
description = "Green Block",
tiles = {"green_node.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
2023-05-01 04:56:35 +03:00
drop = "nodex:greenblock",
2023-03-05 07:16:53 +03:00
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("nodex:redblock", {
description = "Red Block",
tiles = {"red_node.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodex:redblock",
2023-01-27 22:07:50 +03:00
sounds = default.node_sound_stone_defaults()
})
2023-03-05 07:16:53 +03:00
minetest.register_node("nodex:grayblock", {
description = "Gray Block",
tiles = {"gray_node.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodex:grayblock",
sounds = default.node_sound_stone_defaults()
})
2023-01-27 22:07:50 +03:00
---- COAL STAIR :
2023-02-02 16:48:14 +03:00
minetest.register_node("nodex:stair_coal", {
2023-01-27 22:07:50 +03:00
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
2023-02-02 16:48:14 +03:00
minetest.register_node("nodex:road", {
2023-01-23 04:13:39 +03:00
description = "Road",
tiles = {"road.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
2023-02-02 16:48:14 +03:00
drop = "nodex:road",
2023-01-23 04:13:39 +03:00
sounds = default.node_sound_stone_defaults()
})
minetest.register_craft({ ------ CRaFT
type = "shaped",
2023-02-02 16:48:14 +03:00
output = "nodex:road 9",
2023-01-23 04:13:39 +03:00
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
2023-02-02 16:48:14 +03:00
minetest.register_node("nodex:road2", {
2023-01-23 04:13:39 +03:00
description = "Road 2",
tiles = {"road_y.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
2023-02-02 16:48:14 +03:00
drop = "nodex:road2",
2023-01-23 04:13:39 +03:00
sounds = default.node_sound_stone_defaults()
})
minetest.register_craft({ ------ CRaFT
type = "shaped",
2023-02-02 16:48:14 +03:00
output = "nodex:road2 12",
2023-01-23 04:13:39 +03:00
recipe = {
2023-02-02 16:48:14 +03:00
{"nodex:road","dye:yellow","nodex:road"},
{"nodex:road","dye:yellow","nodex:road"},
{"nodex:road","dye:yellow","nodex:road"}
2023-01-23 04:13:39 +03:00
}
})
2023-01-24 19:55:52 +03:00
---- ROAD 2 :
2023-02-02 16:48:14 +03:00
minetest.register_node("nodex:road3", {
2023-01-24 19:55:52 +03:00
description = "Road 3",
tiles = {"curvedroad.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
2023-02-02 16:48:14 +03:00
drop = "nodex:road3",
2023-01-24 19:55:52 +03:00
sounds = default.node_sound_stone_defaults()
})
minetest.register_craft({ ------ CRaFT
type = "shaped",
2023-02-02 16:48:14 +03:00
output = "nodex:road3 12",
2023-01-24 19:55:52 +03:00
recipe = {
2023-02-02 16:48:14 +03:00
{"nodex:road","dye:yellow","nodex:road"},
{"nodex:road","dye:yellow","dye:yellow"},
{"nodex:road","nodex:road","nodex:road"}
2023-01-24 19:55:52 +03:00
}
})
2023-01-23 04:13:39 +03:00
2023-01-24 19:55:52 +03:00
---- Road Stop Line:
2023-02-02 16:48:14 +03:00
minetest.register_node("nodex:roadstopline", {
2023-01-24 19:55:52 +03:00
description = "Road Stop Line",
tiles = {"road_stop_line.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
2023-02-02 16:48:14 +03:00
drop = "nodex:roadstopline",
2023-01-24 19:55:52 +03:00
sounds = default.node_sound_stone_defaults()
})
minetest.register_craft({ ------ CRaFT
type = "shaped",
2023-02-02 16:48:14 +03:00
output = "nodex:roadstopline 12",
2023-01-24 19:55:52 +03:00
recipe = {
2023-02-02 16:48:14 +03:00
{"nodex:road","dye:white","nodex:road"},
{"nodex:road","dye:white","nodex:road"},
{"nodex:road","dye:white","nodex:road"}
2023-01-24 19:55:52 +03:00
}
})
---- SIDEWALK :
2023-02-02 16:48:14 +03:00
minetest.register_node("nodex:sidewalk", {
2023-01-23 04:13:39 +03:00
description = "Sidewalk",
tiles = {"sidewalk.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
2023-02-02 16:48:14 +03:00
drop = "nodex:sidewalk",
2023-01-23 04:13:39 +03:00
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-02-02 16:48:14 +03:00
output = "nodex: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
2023-02-23 05:00:51 +03:00
---- BRICK MOTEL :
minetest.register_node("nodex:brick_motel", {
description = "Brick Motel",
tiles = {"brick_motel.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodex:brick_motel",
sounds = default.node_sound_stone_defaults()
})
---- FLOOR BLOCK :
minetest.register_node("nodex:floor_block", {
description = "Floor Block",
tiles = {"floor_block.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodex:floor_block",
sounds = default.node_sound_stone_defaults()
})
---- MEDICAL TENT :
minetest.register_node("nodex:medicaltentblock", {
description = "Medical Tent Block",
tiles = {"medical_tent_block.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodex:medicaltentblock",
sounds = default.node_sound_stone_defaults()
})