init.lua 625 B

123456789101112131415161718192021222324252627
  1. if not minetest.global_exists("voidstone") then voidstone = {} end
  2. voidstone.modpath = minetest.get_modpath("voidstone")
  3. -- It is not supposed to be possible for players to obtain this node.
  4. -- Except by making nether portals.
  5. minetest.register_node('voidstone:void', {
  6. description = 'Voidstone (You Hacker, You!)',
  7. tiles = {'voidstone_void.png'},
  8. drawtype = "nodebox",
  9. paramtype = "light",
  10. groups = -- comment
  11. {
  12. unbreakable=1,
  13. immovable=1,
  14. disable_jump=1,
  15. },
  16. node_box = {
  17. type = "fixed",
  18. fixed = {-0.5, (-0.5/8)*5, -0.5, 0.5, (0.5/8)*5, 0.5},
  19. },
  20. diggable = false,
  21. drop = "",
  22. });