init.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. if not minetest.global_exists("bedrock") then bedrock = {} end
  2. bedrock.modpath = minetest.get_modpath("bedrock")
  3. minetest.register_node("bedrock:bedrock", {
  4. description = "Bedrock",
  5. tiles = {"bedrock_bedrock.png"},
  6. groups = {unbreakable = 1, immovable=1, not_in_creative_inventory = 1},
  7. drop = "",
  8. is_ground_content = false, -- This is important!
  9. sounds = default.node_sound_stone_defaults(),
  10. diggable = false,
  11. always_protected = true, -- Protector code handles this.
  12. on_blast = function(...) end,
  13. can_dig = function(...) return false end,
  14. })
  15. minetest.register_node("bedrock:fullclip", {
  16. description = "Full Clip",
  17. inventory_image = "default_steel_block.png^dye_blue.png",
  18. drawtype = "airlike",
  19. paramtype = "light",
  20. sunlight_propagates = true,
  21. pointable = false,
  22. groups = {unbreakable = 1, immovable = 1, not_in_creative_inventory = 1},
  23. drop = "",
  24. is_ground_content = false, -- This is important!
  25. diggable = false,
  26. always_protected = true, -- Protector code handles this.
  27. on_blast = function(...) end,
  28. can_dig = function(...) return false end,
  29. })