Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1.  
  2. -- Oil Lantern
  3.  
  4. minetest.register_node("xanadu:oil_lantern_on", {
  5. description = "Oil Lantern",
  6. tiles = {"oil_lantern_on.png"},
  7. drawtype = "plantlike",
  8. paramtype = "light",
  9. sunlight_propagates = true,
  10. light_source = 12,
  11. groups = {snappy = 3, not_in_creative_inventory = 1},
  12. drop = "xanadu:oil_lantern_off",
  13. selection_box = {
  14. type = "fixed",
  15. fixed = { -0.15, -0.5, -0.15, 0.15, 0.1, 0.15 },
  16. },
  17.  
  18. on_punch = function(pos, node, puncher)
  19. node.name = "xanadu:oil_lantern_off"
  20. minetest.swap_node(pos, node)
  21. end,
  22. })
  23.  
  24. minetest.register_node("xanadu:oil_lantern_off", {
  25. description = "Oil Lantern",
  26. tiles = {"oil_lantern_off.png"},
  27. drawtype = "plantlike",
  28. paramtype = "light",
  29. sunlight_propagates = true,
  30. groups = {snappy = 3},
  31. selection_box = {
  32. type = "fixed",
  33. fixed = { -0.15, -0.5, -0.15, 0.15, 0.1, 0.15 },
  34. },
  35.  
  36. on_punch = function(pos, node, puncher)
  37. node.name = "xanadu:oil_lantern_on"
  38. minetest.swap_node(pos, node)
  39. end,
  40. })
  41.  
  42. minetest.register_craft({
  43. output = "xanadu:oil_lantern_off",
  44. recipe = {
  45. {"default:glass"},
  46. {"farming:string"},
  47. {"default:steel_ingot"},
  48. }
  49. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement