Hopefully the last bugfix commit for this version

This commit is contained in:
MCLx86 2021-12-21 23:43:14 -05:00
parent b5c9bf29cd
commit 835cb8e81e
7 changed files with 52 additions and 25 deletions

View File

@ -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

BIN
menu/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 KiB

View File

@ -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()

View File

@ -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},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

View File

@ -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},
}
})

View File

@ -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,