override.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. -- Prevent the carving of water/lava caves in these materials.
  2. minetest.override_item("rackstone:rackstone", {
  3. is_ground_content = false,
  4. })
  5. minetest.override_item("rackstone:redrack", {
  6. is_ground_content = false,
  7. })
  8. -- We need 2 types of nether stone, 1 type for below the brimstone ocean,
  9. -- and the second type for the nether above. The second type allows caves
  10. -- to be carved through it. That is the main reason for having a new
  11. -- node definition.
  12. -- Make a mapgen-specific copy of this nodetype.
  13. local rdef = table.copy(minetest.registered_nodes["rackstone:redrack"])
  14. rdef.is_ground_content = true
  15. rdef.drop = "rackstone:redrack_cobble"
  16. rdef.after_place_node = function(pos) -- In case player manages to obtain.
  17. minetest.swap_node(pos, {name="rackstone:redrack_cobble"})
  18. end
  19. --[[
  20. rdef.drawtype = "airlike"
  21. rdef.paramtype = "light"
  22. rdef.sunlight_propagates = true
  23. rdef.light_source = 15
  24. rdef.pointable = false
  25. --]]
  26. minetest.register_node(":rackstone:mg_redrack", rdef)
  27. -- Make a mapgen-specific copy of this nodetype.
  28. local ddef = table.copy(minetest.registered_nodes["rackstone:rackstone"])
  29. ddef.is_ground_content = true
  30. ddef.drop = "rackstone:cobble"
  31. ddef.after_place_node = function(pos) -- In case player manages to obtain.
  32. minetest.swap_node(pos, {name="rackstone:cobble"})
  33. end
  34. minetest.register_node(":rackstone:mg_rackstone", ddef)