protector nodes now has unbreakable=1 group added for mobs mod
authortenplus1 <kinsellaja@yahoo.com>
Fri, 26 Jun 2015 08:18:59 +0000 (09:18 +0100)
committertenplus1 <kinsellaja@yahoo.com>
Fri, 26 Jun 2015 08:18:59 +0000 (09:18 +0100)
init.lua

index 2f20334..9fecbf6 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -178,7 +178,7 @@ minetest.register_node("protector:protect", {
        description = "Protection Block",
        tiles = {"moreblocks_circle_stone_bricks.png","moreblocks_circle_stone_bricks.png","moreblocks_circle_stone_bricks.png^protector_logo.png"},
        sounds = default.node_sound_stone_defaults(),
-       groups = {dig_immediate=2},
+       groups = {dig_immediate=2,unbreakable=1},
        drawtype = "nodebox",
        node_box = {
                type="fixed",
@@ -237,7 +237,7 @@ minetest.register_node("protector:protect2", {
        wield_image = "protector_logo.png",
        inventory_image = "protector_logo.png",
        sounds = default.node_sound_stone_defaults(),
-       groups = {dig_immediate=2},
+       groups = {dig_immediate=2,unbreakable=1},
        paramtype = 'light',
        paramtype2 = "wallmounted",
        light_source = 2,
@@ -531,7 +531,7 @@ minetest.register_node("protector:chest", {
        tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
                "default_chest_side.png", "default_chest_side.png", "default_chest_front.png^protector_logo.png"},
        paramtype2 = "facedir",
-       groups = {choppy=2,oddly_breakable_by_hand=2},
+       groups = {choppy=2,oddly_breakable_by_hand=2,unbreakable=1},
        legacy_facedir_simple = true,
        is_ground_content = false,
        sounds = default.node_sound_wood_defaults(),