Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_node("trainz:rail", {
- description = "rail",
- paramtype = "light",
- paramtype2 = "facedir",
- tiles = {"default_steel_block.png"},
- drawtype = "nodebox",
- groups = {crumbly=3},
- node_box = {
- type = "fixed",
- fixed = {
- {-0.4,-0.3,-0.5,-0.3,-0.1,0.5},
- {0.3,-0.3,-0.5,0.4,-0.1,0.5}
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {-0.5,-0.5,-0.5,0.5,-0.1,0.5}
- },
- })
- minetest.register_node("trainz:rail_turn", {
- description = "rail",
- paramtype = "light",
- paramtype2 = "facedir",
- tiles = {"default_steel_block.png"},
- drawtype = "nodebox",
- groups = {crumbly=3},
- node_box = {
- type = "fixed",
- fixed = {
- {-0.4,-0.3,-0.5,-0.3,-0.1,0.4},
- {-0.4,-0.3,0.3,0.5,-0.1,0.4},
- {0.3,-0.3,-0.5,0.4,-0.1,-0.3},
- {0.3,-0.3,-0.4,0.5,-0.1,-0.3},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {-0.5,-0.5,-0.5,0.5,-0.1,0.5}
- },
- })
Advertisement
Add Comment
Please, Sign In to add comment