Guest User

Untitled

a guest
Dec 13th, 2012
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1.  
  2. minetest.register_node("trainz:rail", {
  3. description = "rail",
  4. paramtype = "light",
  5. paramtype2 = "facedir",
  6. tiles = {"default_steel_block.png"},
  7. drawtype = "nodebox",
  8. groups = {crumbly=3},
  9. node_box = {
  10. type = "fixed",
  11. fixed = {
  12. {-0.4,-0.3,-0.5,-0.3,-0.1,0.5},
  13. {0.3,-0.3,-0.5,0.4,-0.1,0.5}
  14. },
  15. },
  16. selection_box = {
  17. type = "fixed",
  18. fixed = {-0.5,-0.5,-0.5,0.5,-0.1,0.5}
  19. },
  20. })
  21. minetest.register_node("trainz:rail_turn", {
  22. description = "rail",
  23. paramtype = "light",
  24. paramtype2 = "facedir",
  25. tiles = {"default_steel_block.png"},
  26. drawtype = "nodebox",
  27. groups = {crumbly=3},
  28. node_box = {
  29. type = "fixed",
  30. fixed = {
  31. {-0.4,-0.3,-0.5,-0.3,-0.1,0.4},
  32. {-0.4,-0.3,0.3,0.5,-0.1,0.4},
  33. {0.3,-0.3,-0.5,0.4,-0.1,-0.3},
  34. {0.3,-0.3,-0.4,0.5,-0.1,-0.3},
  35. },
  36. },
  37. selection_box = {
  38. type = "fixed",
  39. fixed = {-0.5,-0.5,-0.5,0.5,-0.1,0.5}
  40. },
  41. })
Advertisement
Add Comment
Please, Sign In to add comment