items.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. minetest.register_node("griefer:grieferstone", {
  2. description = "Oerkki Stone",
  3. tiles = {
  4. "griefer_stonetop.png",
  5. "griefer_stonetop.png",
  6. "griefer_stoneside.png",
  7. },
  8. sounds = default.node_sound_stone_defaults(),
  9. groups = utility.dig_groups("obsidian"),
  10. drop = "default:goldblock",
  11. silverpick_drop = true,
  12. --[[
  13. on_construct = function(...)
  14. return griefer.on_stone_construct(...)
  15. end,
  16. on_timer = function(...)
  17. return griefer.on_stone_timer(...)
  18. end,
  19. --]]
  20. on_destruct = function(pos)
  21. obsidian_gateway.on_damage_gate(pos)
  22. end,
  23. after_destruct = function(pos)
  24. minetest.after(0, ambiance.recheck_nearby_sound_beacons, {x=pos.x, y=pos.y, z=pos.z}, 16)
  25. jail.notify_jail_destruct(pos)
  26. end,
  27. on_collapse_to_entity = function(pos, node)
  28. minetest.add_item(pos, {name="default:goldblock"})
  29. end,
  30. })
  31. minetest.register_craft({
  32. output = 'griefer:grieferstone',
  33. recipe = {
  34. {'default:obsidian', 'default:obsidian', 'default:obsidian'},
  35. {'default:obsidian', 'default:goldblock', 'default:obsidian'},
  36. {'default:obsidian', 'default:obsidian', 'default:obsidian'},
  37. }
  38. })
  39. minetest.register_alias("mobs_monster:oerkki_stone", "griefer:grieferstone")
  40. -- Spawner for Naraxen Oerkkis. Not to be obtainable, system use only.
  41. minetest.register_node("griefer:naraxen", {
  42. description = "Oerkki Stone",
  43. tiles = {
  44. "griefer_stonetop.png",
  45. "griefer_stonetop.png",
  46. "griefer_stoneside.png",
  47. },
  48. sounds = default.node_sound_stone_defaults(),
  49. groups = utility.dig_groups("obsidian"),
  50. drop = "default:goldblock",
  51. silverpick_drop = "griefer:grieferstone",
  52. on_finish_collapse = function(pos, node)
  53. minetest.swap_node(pos, {name="griefer:grieferstone"})
  54. end,
  55. on_collapse_to_entity = function(pos, node)
  56. minetest.add_item(pos, {name="default:goldblock"})
  57. end,
  58. })
  59. -- Spawner for elite oerkkis. Not to be craftable, can be looted from fortresses.
  60. minetest.register_node("griefer:elitestone", {
  61. description = "Wrath Obsidian",
  62. tiles = {
  63. "caverealms_glow_obsidian.png",
  64. "caverealms_glow_obsidian.png",
  65. "caverealms_glow_obsidian.png^griefer_stoneside2.png",
  66. },
  67. light_source = 7,
  68. sounds = default.node_sound_stone_defaults(),
  69. groups = utility.dig_groups("obsidian"),
  70. drop = "default:goldblock",
  71. silverpick_drop = true,
  72. on_collapse_to_entity = function(pos, node)
  73. minetest.add_item(pos, {name="default:goldblock"})
  74. end,
  75. })