Add Iron Axe, Shovel, Sword, Hoe and more lucky blocks

This commit is contained in:
TenPlus1 2018-07-24 19:59:02 +01:00
parent eb870960a8
commit 1a6656f4c1
7 changed files with 113 additions and 5 deletions

View File

@ -6,7 +6,7 @@ https://forum.minetest.net/viewtopic.php?f=9&t=20568
This mod exists to add a little progression to the game so that steel isn't so easy to come by :)
- Pig Iron Ingots can be made by smelting Iron Ore in a furnace
- Wrought Iron Ingots can be made by smelting Iron Ore in a furnace
- Charcoal can be made by cooking Tree's in a furnace
- 1x Iron Ingot and 3x Charcoal create a mix that is smelted into 1x Steel Ingot
- Iron Ingots can be made into blocks which can be used to make stairs
@ -14,9 +14,10 @@ This mod exists to add a little progression to the game so that steel isn't so e
- A bucket of water surrounded by Iron Blocks returns 8x Rusted Iron Blocks
- Added Iron Pickaxe which is better than stone but worse than steel
Lucky Blocks: 6
Lucky Blocks: 8
Changelog:
- 0.1 - Initial Upload
- 0.2 - Added Iron Pickaxe
- 0.3 - Add Iron Axe, Shovel, Sword, Hoe and more lucky blocks

View File

@ -1,3 +1,4 @@
default
stairs?
farming?
lucky_block?

112
init.lua
View File

@ -158,14 +158,14 @@ minetest.register_craft({
cooktime = 10
})
-- Pig Iron Tools / Armor
-- Iron Pickaxe
minetest.register_tool("pigiron:pick_iron", {
description = "Iron Pickaxe",
inventory_image = "pigiron_iron_pick.png",
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level = 0,
max_drop_level = 1,
groupcaps = {
cracky = {
times = {[1] = 2.5, [2] = 1.40, [3] = 0.95},
@ -186,6 +186,103 @@ minetest.register_craft({
}
})
-- Iron Shovel
minetest.register_tool("pigiron:shovel_iron", {
description = "Iron Shovel",
inventory_image = "pigiron_iron_shovel.png",
wield_image = "pigiron_iron_shovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.3,
max_drop_level = 1,
groupcaps = {
crumbly = {
times = {[1] = 1.70, [2] = 1.0, [3] = 0.45},
uses = 25, maxlevel = 1
},
},
damage_groups = {fleshy = 2},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_craft({
output = "pigiron:shovel_iron",
recipe = {
{"pigiron:iron_ingot"},
{"group:stick"},
{"group:stick"},
}
})
-- Iron Axe
minetest.register_tool("pigiron:axe_iron", {
description = "Iron Axe",
inventory_image = "pigiron_iron_axe.png",
tool_capabilities = {
full_punch_interval = 1.1,
max_drop_level = 1,
groupcaps = {
choppy = {
times = {[1] = 2.70, [2] = 1.70, [3] = 1.15},
uses = 20, maxlevel = 1
},
},
damage_groups = {fleshy = 3},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_craft({
output = "pigiron:axe_iron",
recipe = {
{"pigiron:iron_ingot", "pigiron:iron_ingot"},
{"pigiron:iron_ingot", "group:stick"},
{"", "group:stick"},
}
})
-- Iron Sword
minetest.register_tool("pigiron:sword_iron", {
description = "Iron Sword",
inventory_image = "pigiron_iron_sword.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 1,
groupcaps = {
snappy = {
times = {[1] = 2.0, [2] = 1.30, [3] = 0.38},
uses = 25, maxlevel = 1
},
},
damage_groups = {fleshy = 5},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_craft({
output = "pigiron:sword_iron",
recipe = {
{"pigiron:iron_ingot"},
{"pigiron:iron_ingot"},
{"group:stick"},
}
})
-- Iron Hoe
if minetest.get_modpath("farming") then
farming.register_hoe(":farming:hoe_iron", {
description = "Iron Hoe",
inventory_image = "pigiron_iron_hoe.png",
max_uses = 150,
material = "pigiron:iron_ingot"
})
end
-- Abm to turn Iron Block into Rusted Iron Block
minetest.register_abm({
@ -258,8 +355,17 @@ if minetest.get_modpath("lucky_block") then
{"nod", "pigiron:rusted_iron_block", 0},
{"tro", "pigiron:iron_block", nil, true},
{"dro", {"pigiron:charcoal_lump"}, 10},
{"dro", {"pigiron:sword_iron", "pigiron:axe_iron",
"pigiron:pickaxe_iron", "pigiron:shovel_iron"}, 1},
{"fal", {"pigiron:iron_block", "pigiron:rusted_iron_block",
"pigiron:iron_block", "pigiron:rusted_iron_block",
"pigiron:iron_block", "pigiron:rusted_iron_block"}},
})
})
if minetest.get_modpath("farming") then
lucky_block:add_blocks({
{"dro", {"pigiron:hoe_iron"}, 1},
})
end
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B