ramps.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. minetest.register_node('sss_map:ramp_1', {
  2. description = 'Ramp (1 node wide)',
  3. drawtype = 'mesh',
  4. mesh = 'sss_map_ramp_1.obj',
  5. tiles = {'sss_map_ramp_2.png'},
  6. paramtype = 'light',
  7. paramtype2 = 'facedir',
  8. wield_scale = {x = .5, y = .5, z = .5},
  9. selection_box = {
  10. type = 'fixed',
  11. fixed = {
  12. {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
  13. {-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
  14. {-0.5, -0.25, 0, 0.5, -0.125, 0.5},
  15. {-0.5, -0.125, 0.25, 0.5, 0, 0.5},
  16. {-0.5, -0.5, 0.5, 0.5, 0.125, 1.5},
  17. {-0.5, 0.125, 0.75, 0.5, 0.25, 1.5},
  18. {-0.5, 0.25, 1, 0.5, 0.375, 1.5},
  19. {-0.5, 0.375, 1.25, 0.5, 0.5, 1.5}
  20. }
  21. },
  22. collision_box = {
  23. type = 'fixed',
  24. fixed = {
  25. {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
  26. {-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
  27. {-0.5, -0.25, 0, 0.5, -0.125, 0.5},
  28. {-0.5, -0.125, 0.25, 0.5, 0, 0.5},
  29. {-0.5, -0.5, 0.5, 0.5, 0.125, 1.5},
  30. {-0.5, 0.125, 0.75, 0.5, 0.25, 1.5},
  31. {-0.5, 0.25, 1, 0.5, 0.375, 1.5},
  32. {-0.5, 0.375, 1.25, 0.5, 0.5, 1.5}
  33. }
  34. },
  35. groups = {breakable=1},
  36. })