items.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. })
  28. minetest.register_craft({
  29. output = 'griefer:grieferstone',
  30. recipe = {
  31. {'default:obsidian', 'default:obsidian', 'default:obsidian'},
  32. {'default:obsidian', 'default:goldblock', 'default:obsidian'},
  33. {'default:obsidian', 'default:obsidian', 'default:obsidian'},
  34. }
  35. })
  36. minetest.register_alias("mobs_monster:oerkki_stone", "griefer:grieferstone")