123456789101112131415161718192021222324252627282930313233343536 |
- bedrock = bedrock or {}
- bedrock.modpath = minetest.get_modpath("bedrock")
- minetest.register_node("bedrock:bedrock", {
- description = "Bedrock",
- tiles = {"bedrock_bedrock.png"},
- groups = {unbreakable = 1, immovable=1, not_in_creative_inventory = 1},
- drop = "",
- is_ground_content = false, -- This is important!
- sounds = default.node_sound_stone_defaults(),
- diggable = false,
- always_protected = true, -- Protector code handles this.
- on_blast = function(...) end,
- can_dig = function(...) return false end,
- })
- minetest.register_node("bedrock:fullclip", {
- description = "Full Clip",
- inventory_image = "default_steel_block.png^dye_blue.png",
- drawtype = "airlike",
- paramtype = "light",
- sunlight_propagates = true,
- pointable = false,
- groups = {unbreakable = 1, immovable = 1, not_in_creative_inventory = 1},
- drop = "",
- is_ground_content = false, -- This is important!
- diggable = false,
- always_protected = true, -- Protector code handles this.
- on_blast = function(...) end,
- can_dig = function(...) return false end,
- })
|