diff --git a/README.TXT b/README.TXT index c22f25f..3ab82e0 100644 --- a/README.TXT +++ b/README.TXT @@ -9,8 +9,9 @@ the hook first by left clicking. Prices: +you start out with a hatchet 8 coconuts = steel pickaxe -20 coconuts = pickaxe tier2 +20 coconuts = 2nd tier pickaxe 99 coconuts = coconut drill diff --git a/menu/background.png b/menu/background.png new file mode 100644 index 0000000..093e856 Binary files /dev/null and b/menu/background.png differ diff --git a/mods/coconut/init.lua b/mods/coconut/init.lua index 35db53b..50fba37 100644 --- a/mods/coconut/init.lua +++ b/mods/coconut/init.lua @@ -27,9 +27,8 @@ minetest.register_node("coconut:nut", { minetest.register_on_joinplayer(function(player) skybox.set(player, 5) -local wielditem = player:get_wielded_item() -wielditem:set_name("main:pickaxe_steel") -player:set_wielded_item(wielditem) +mpd:play_song(1) +player:set_wielded_item("main:hatchet") end) function coconut.init() diff --git a/mods/main/nodes.lua b/mods/main/nodes.lua index 30cb79b..af1571f 100644 --- a/mods/main/nodes.lua +++ b/mods/main/nodes.lua @@ -2,7 +2,7 @@ minetest.register_node("main:stone", { description = "Stone", tiles = {"main_stone.png"}, - groups = {cracky = 3, stone = 1}, + drop = 'main:cobble', legacy_mineral = true, }) @@ -10,7 +10,7 @@ minetest.register_node("main:stone", { minetest.register_node("main:cobble", { description = "Cobble", tiles = {"main_cobble.png"}, - groups = {cracky = 2, stone = 1}, + drop = 'main:cobble', legacy_mineral = true, }) @@ -18,7 +18,7 @@ minetest.register_node("main:cobble", { minetest.register_node("main:dirt", { description = "Dirt", tiles = {"main_dirt.png"}, - groups = {crumbly = 3, soil = 1}, + }) minetest.register_node("main:grass", { @@ -26,7 +26,7 @@ minetest.register_node("main:grass", { tiles = {"main_grass.png", "main_dirt.png", {name = "main_dirt.png^main_grass_side.png", tileable_vertical = false}}, - groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1}, + drop = 'main:dirt', }) @@ -34,24 +34,14 @@ minetest.register_node("main:grass", { minetest.register_node("main:sand", { description = "Sand", tiles = {"main_sand.png"}, - groups = {crumbly = 3, sand = 1}, + }) ---Player made nodes -minetest.register_node("main:light", { - description = "Lamp", - tiles = {"main_indsutrial_decor_lamp.png"}, - light_source = 14, - groups = {choppy = 3, oddly_breakable_by_hand = 3}, -}) - - - --Steel Block minetest.register_node("main:block_steel", { description = "Steel Block", tiles = {"main_block_iron.png"}, - groups = {cracky = 3}, + drop = 'main:block_iron', }) @@ -59,7 +49,7 @@ minetest.register_node("main:block_steel", { minetest.register_node("main:block_gold", { description = "Gold Block", tiles = {"main_block_gold.png"}, - groups = {cracky = 3}, + drop = 'main:block_gold', }) @@ -67,7 +57,7 @@ minetest.register_node("main:block_gold", { minetest.register_node("main:planks_oak", { description = "Planks", tiles = {"main_planks_oak.png"}, - groups = {choppy = 3}, + }) @@ -80,7 +70,7 @@ minetest.register_node("main:planks_oak", { minetest.register_node("main:log", { description = "Log", tiles = {"main_log.png"}, - groups = {choppy = 2, logs = 1}, + }) --Oak Leaves @@ -94,7 +84,7 @@ minetest.register_node("main:leaves", { is_ground_content = false, description = "Leaves", tiles = {"main_leaves.png"}, - groups = {snappy = 3}, + }) diff --git a/mods/main/textures/main_hatchet.png b/mods/main/textures/main_hatchet.png new file mode 100644 index 0000000..0c2bb33 Binary files /dev/null and b/mods/main/textures/main_hatchet.png differ diff --git a/mods/main/tools.lua b/mods/main/tools.lua index e0801a7..5baece3 100644 --- a/mods/main/tools.lua +++ b/mods/main/tools.lua @@ -11,7 +11,7 @@ minetest.register_item(":", groupcaps = { oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0}, - cracky = {times={[1]=10.00}, uses=0, maxlevel=1}, + cracky = {times={[1]=12.00}, uses=0, maxlevel=1}, crumbly = {times={[2]=4.50, [3]=1.80}, uses=0, maxlevel=1}, }, damage_groups = {cracky = 1}, @@ -90,3 +90,22 @@ minetest.register_item("main:pickaxe_stone", } }) +minetest.register_item("main:hatchet", +{ + type = "none", + wield_image = "main_hatchet.png", + inventory_image = "main_hatchet.png", + tool_capabilities = + { + max_drop_level = 1, + full_punch_interval = 0.8, + + groupcaps = + { + cracky = {times={[1]=10, [2]=2.00,[3]=1.50}, uses=0, maxlevel=1}, + }, + damage_groups = {cracky = 5}, + } +}) + + diff --git a/mods/telephone/init.lua b/mods/telephone/init.lua index 6ce0819..0ac122f 100644 --- a/mods/telephone/init.lua +++ b/mods/telephone/init.lua @@ -126,6 +126,24 @@ minetest.register_node("telephone:saxom_exkanto_offhook", { groups = {cracky = 2}, on_punch = function(pos, node, puncher, pointed_thing) + if puncher:get_wielded_item():get_name() == "coconut:nut" then + if puncher:get_wielded_item():get_count() >= 99 then + puncher:set_wielded_item("main:drill") + end + + if puncher:get_wielded_item():get_count() >= 20 then + puncher:set_wielded_item("main:pickaxe_tier2") + end + + if puncher:get_wielded_item():get_count() >= 8 then + puncher:set_wielded_item("main:pickaxe_steel") + end + + if puncher:get_wielded_item():get_count() >= 4 then + puncher:set_wielded_item("main:pickaxe_stone") + end + end + node.name = "telephone:saxom_exkanto" minetest.set_node(pos, node) end,