diff --git a/mods/coconut/init.lua b/mods/coconut/init.lua index 7cf3003..35db53b 100644 --- a/mods/coconut/init.lua +++ b/mods/coconut/init.lua @@ -20,13 +20,16 @@ minetest.register_node("coconut:nut", { {-0.25, -0.5, -0.25, 0.25, 0, 0.25}, } }, - groups = {falling_node = 1, cracky = 2} + groups = {falling_node = 1, cracky = 1} }) + minetest.register_on_joinplayer(function(player) skybox.set(player, 5) -player.set_wielded_item("minetest:pickaxe_steel") +local wielditem = player:get_wielded_item() +wielditem:set_name("main:pickaxe_steel") +player:set_wielded_item(wielditem) end) function coconut.init() diff --git a/mods/main/tools.lua b/mods/main/tools.lua index 0f47c56..8400424 100644 --- a/mods/main/tools.lua +++ b/mods/main/tools.lua @@ -11,10 +11,10 @@ minetest.register_item(":", groupcaps = { oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0}, - snappy = {times={[3]=1.00}, uses=0, maxlevel=1}, + cracky = {times={[1]=10.00}, uses=0, maxlevel=1}, crumbly = {times={[2]=4.50, [3]=1.80}, uses=0, maxlevel=1}, }, - damage_groups = {fleshy = 3, snappy = 2}, + damage_groups = {cracky = 1}, } }) @@ -30,7 +30,7 @@ minetest.register_item("main:pickaxe_steel", groupcaps = { - cracky = {times={[1]=1.80, [2]=1.00,[3]=0.50}, uses=0, maxlevel=1}, + cracky = {times={[1]=6, [2]=1.00,[3]=0.50}, uses=0, maxlevel=1}, crumbly = {times={[2]=2.50, [3]=0.80}, uses=0, maxlevel=1}, }, damage_groups = {fleshy = 5, cracky = 8},