Hopefully the last bugfix commit for this version
This commit is contained in:
parent
b5c9bf29cd
commit
835cb8e81e
@ -9,8 +9,9 @@ the hook first by left clicking.
|
|||||||
|
|
||||||
|
|
||||||
Prices:
|
Prices:
|
||||||
|
you start out with a hatchet
|
||||||
8 coconuts = steel pickaxe
|
8 coconuts = steel pickaxe
|
||||||
20 coconuts = pickaxe tier2
|
20 coconuts = 2nd tier pickaxe
|
||||||
99 coconuts = coconut drill
|
99 coconuts = coconut drill
|
||||||
|
|
||||||
|
|
||||||
|
BIN
menu/background.png
Normal file
BIN
menu/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 873 KiB |
@ -27,9 +27,8 @@ minetest.register_node("coconut:nut", {
|
|||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
skybox.set(player, 5)
|
skybox.set(player, 5)
|
||||||
local wielditem = player:get_wielded_item()
|
mpd:play_song(1)
|
||||||
wielditem:set_name("main:pickaxe_steel")
|
player:set_wielded_item("main:hatchet")
|
||||||
player:set_wielded_item(wielditem)
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
function coconut.init()
|
function coconut.init()
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
minetest.register_node("main:stone", {
|
minetest.register_node("main:stone", {
|
||||||
description = "Stone",
|
description = "Stone",
|
||||||
tiles = {"main_stone.png"},
|
tiles = {"main_stone.png"},
|
||||||
groups = {cracky = 3, stone = 1},
|
|
||||||
drop = 'main:cobble',
|
drop = 'main:cobble',
|
||||||
legacy_mineral = true,
|
legacy_mineral = true,
|
||||||
})
|
})
|
||||||
@ -10,7 +10,7 @@ minetest.register_node("main:stone", {
|
|||||||
minetest.register_node("main:cobble", {
|
minetest.register_node("main:cobble", {
|
||||||
description = "Cobble",
|
description = "Cobble",
|
||||||
tiles = {"main_cobble.png"},
|
tiles = {"main_cobble.png"},
|
||||||
groups = {cracky = 2, stone = 1},
|
|
||||||
drop = 'main:cobble',
|
drop = 'main:cobble',
|
||||||
legacy_mineral = true,
|
legacy_mineral = true,
|
||||||
})
|
})
|
||||||
@ -18,7 +18,7 @@ minetest.register_node("main:cobble", {
|
|||||||
minetest.register_node("main:dirt", {
|
minetest.register_node("main:dirt", {
|
||||||
description = "Dirt",
|
description = "Dirt",
|
||||||
tiles = {"main_dirt.png"},
|
tiles = {"main_dirt.png"},
|
||||||
groups = {crumbly = 3, soil = 1},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("main:grass", {
|
minetest.register_node("main:grass", {
|
||||||
@ -26,7 +26,7 @@ minetest.register_node("main:grass", {
|
|||||||
tiles = {"main_grass.png", "main_dirt.png",
|
tiles = {"main_grass.png", "main_dirt.png",
|
||||||
{name = "main_dirt.png^main_grass_side.png",
|
{name = "main_dirt.png^main_grass_side.png",
|
||||||
tileable_vertical = false}},
|
tileable_vertical = false}},
|
||||||
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
|
|
||||||
drop = 'main:dirt',
|
drop = 'main:dirt',
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -34,24 +34,14 @@ minetest.register_node("main:grass", {
|
|||||||
minetest.register_node("main:sand", {
|
minetest.register_node("main:sand", {
|
||||||
description = "Sand",
|
description = "Sand",
|
||||||
tiles = {"main_sand.png"},
|
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
|
--Steel Block
|
||||||
minetest.register_node("main:block_steel", {
|
minetest.register_node("main:block_steel", {
|
||||||
description = "Steel Block",
|
description = "Steel Block",
|
||||||
tiles = {"main_block_iron.png"},
|
tiles = {"main_block_iron.png"},
|
||||||
groups = {cracky = 3},
|
|
||||||
drop = 'main:block_iron',
|
drop = 'main:block_iron',
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -59,7 +49,7 @@ minetest.register_node("main:block_steel", {
|
|||||||
minetest.register_node("main:block_gold", {
|
minetest.register_node("main:block_gold", {
|
||||||
description = "Gold Block",
|
description = "Gold Block",
|
||||||
tiles = {"main_block_gold.png"},
|
tiles = {"main_block_gold.png"},
|
||||||
groups = {cracky = 3},
|
|
||||||
drop = 'main:block_gold',
|
drop = 'main:block_gold',
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -67,7 +57,7 @@ minetest.register_node("main:block_gold", {
|
|||||||
minetest.register_node("main:planks_oak", {
|
minetest.register_node("main:planks_oak", {
|
||||||
description = "Planks",
|
description = "Planks",
|
||||||
tiles = {"main_planks_oak.png"},
|
tiles = {"main_planks_oak.png"},
|
||||||
groups = {choppy = 3},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@ -80,7 +70,7 @@ minetest.register_node("main:planks_oak", {
|
|||||||
minetest.register_node("main:log", {
|
minetest.register_node("main:log", {
|
||||||
description = "Log",
|
description = "Log",
|
||||||
tiles = {"main_log.png"},
|
tiles = {"main_log.png"},
|
||||||
groups = {choppy = 2, logs = 1},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
--Oak Leaves
|
--Oak Leaves
|
||||||
@ -94,7 +84,7 @@ minetest.register_node("main:leaves", {
|
|||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
description = "Leaves",
|
description = "Leaves",
|
||||||
tiles = {"main_leaves.png"},
|
tiles = {"main_leaves.png"},
|
||||||
groups = {snappy = 3},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
BIN
mods/main/textures/main_hatchet.png
Normal file
BIN
mods/main/textures/main_hatchet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 253 B |
@ -11,7 +11,7 @@ minetest.register_item(":",
|
|||||||
groupcaps =
|
groupcaps =
|
||||||
{
|
{
|
||||||
oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0},
|
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},
|
crumbly = {times={[2]=4.50, [3]=1.80}, uses=0, maxlevel=1},
|
||||||
},
|
},
|
||||||
damage_groups = {cracky = 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},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -126,6 +126,24 @@ minetest.register_node("telephone:saxom_exkanto_offhook", {
|
|||||||
groups = {cracky = 2},
|
groups = {cracky = 2},
|
||||||
|
|
||||||
on_punch = function(pos, node, puncher, pointed_thing)
|
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"
|
node.name = "telephone:saxom_exkanto"
|
||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user