From eaa50c524b0f637633bcc7cb91e107a6fc34db40 Mon Sep 17 00:00:00 2001 From: Tai Kedzierski Date: Sun, 30 Dec 2018 13:33:34 +0000 Subject: [PATCH] changed inhibitor so that it can be dug by rainbow tool, changed rainbow tool name from bludgeon, moved inhibitor to tools --- init.lua | 2 +- {materials => tools}/mob_inhibitor.lua | 2 +- tools/rainbow_staff.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename {materials => tools}/mob_inhibitor.lua (97%) diff --git a/init.lua b/init.lua index f56335a..eed8d57 100644 --- a/init.lua +++ b/init.lua @@ -31,4 +31,4 @@ nssm:load("tools/rainbow_staff.lua") nssm:load("tools/armor.lua") -- Server -nssm:load("materials/mob_inhibitor.lua") +nssm:load("tools/mob_inhibitor.lua") diff --git a/materials/mob_inhibitor.lua b/tools/mob_inhibitor.lua similarity index 97% rename from materials/mob_inhibitor.lua rename to tools/mob_inhibitor.lua index aef3f67..806ca16 100644 --- a/materials/mob_inhibitor.lua +++ b/tools/mob_inhibitor.lua @@ -18,7 +18,7 @@ minetest.register_node("nssm:mob_inhibitor", { "default_obsidian.png^phoenix_fire_bomb.png", --side "default_obsidian.png^phoenix_fire_bomb.png", --front }, - groups = {unbreakable = 1, not_in_creative_inventory = 1}, + groups = {cracky = 1, level = 4, not_in_creative_inventory = 1}, sounds = default.node_sound_stone_defaults(), drop = "", on_place = function(itemstack, placer, pointed_thing) diff --git a/tools/rainbow_staff.lua b/tools/rainbow_staff.lua index f1bdd3f..8ab8cb5 100644 --- a/tools/rainbow_staff.lua +++ b/tools/rainbow_staff.lua @@ -56,7 +56,7 @@ if nssm.classic_rainbow_staff then else minetest.register_tool("nssm:rainbow_staff", { - description = "Rainbow Bludgeon", + description = "Rainbow Tool", inventory_image = "rainbow_staff.png", tool_capabilities = { full_punch_interval = 0.2,