Add Mithril

This commit is contained in:
IamPyu 2024-12-17 13:50:31 -06:00
parent b0468d7e22
commit 0df6e9a1ff
11 changed files with 117 additions and 4 deletions

View File

@ -30,6 +30,7 @@ Notable Game Changes:
- Added Ambient Sounds
- Added Mana to balance Magic, when you don't have enough Mana to use something your magic tool get's a mind of it's own and damages a 3rd of your health.
- Added Hunger
- Added Mithril and Mithril Tools (They're better than the Enchanted tools but are much more expensive)
Other Game Changes:

View File

@ -1 +1 @@
depends = pyutest_blocks,mobs,pyutest_mapgen,pyutest_entities
depends = pyutest_blocks,mobs,pyutest_mapgen,pyutest_entities,pyutest_worlds

View File

@ -75,3 +75,15 @@ mobs:register_mob("pyutest_mobs:snowman", {
PyuTest.create_boss_egg("pyutest_mobs:snowman", "Snowman Spawn Egg",
"pyutest-egg.png^[multiply:skyblue", 0, nil,
"pyutest_blocks:snow_block")
mobs:spawn({
name = "pyutest_mobs:snowman",
nodes = { "group:ground", "group:ice" },
interval = 3,
chance = 4,
active_object_count = 3,
min_light = 0,
max_light = 15,
max_height = PyuTest.IceWorld.y_max,
min_height = PyuTest.IceWorld.y_min
})

View File

@ -215,6 +215,7 @@ PyuTest.make_building_blocks("pyutest_blocks:ice", "Ice", { "pyutest-ice.png" },
slippery = 4,
cracky = PyuTest.BLOCK_FAST,
thawable = 1,
ice = 1,
})
PyuTest.make_building_blocks("pyutest_blocks:molten_rock", "Molten Rock", { "pyutest-molten-rock.png" }, nil, {

View File

@ -219,7 +219,8 @@ PyuTest.make_node("pyutest_blocks:barrier", "Barrier", {
PyuTest.make_node("pyutest_blocks:weak_ice", "Weak Ice", {
cracky = PyuTest.BLOCK_FAST,
block = 1
block = 1,
ice = 1,
}, { "pyutest-ice.png" }, {
on_walk_over = function(pos)
core.set_node(pos, { name = "pyutest_blocks:water_source" })

View File

@ -0,0 +1,97 @@
PyuTest.make_ore_and_item("pyutest_mithril:mithril", "Mithril", "shard", "Shard", {
ore_options = {
scarcity = 23 * 23 * 23,
y_max = PyuTest.IceWorld.y_max,
y_min = PyuTest.IceWorld.y_min,
wherein = {"group:ice"},
ore_strength = PyuTest.BLOCK_SLOW,
ore_color = "#5e47b7",
ore_stone = {"pyutest-ice.png"}
},
item_texture = "pyutest-shard.png",
item_conf = {
color = "#5e47b7"
},
block_tiles = { "pyutest-metal.png" },
block_color = "#5e47b7",
block_shiny = true,
})
PyuTest.make_tool("pyutest_mithril:mithril_pickaxe", "Mithril Pickaxe", {
pickaxe = 1
}, "pyutest-mithril-pickaxe.png", {
stack_max = 1,
tool_capabilities = PyuTest.tool_caps({
uses = 5536,
attack_uses = 5536 / 2,
groupcaps = {
cracky = {
times = {
[PyuTest.BLOCK_FAST] = 0.1,
[PyuTest.BLOCK_NORMAL] = 0.2,
[PyuTest.BLOCK_SLOW] = 0.4
}
},
crumbly = {
times = {
[PyuTest.BLOCK_FAST] = 0.2,
[PyuTest.BLOCK_NORMAL] = 0.2,
[PyuTest.BLOCK_SLOW] = 0.4,
}
}
}
}),
})
core.register_craft({
output = "pyutest_mithril:mithril_pickaxe",
recipe = {
{ "pyutest_mithril:mithril_shard", "pyutest_mithril:mithril_shard", "pyutest_mithril:mithril_shard" },
{ "", "pyutest_tools:basalt_stick", "" },
{ "", "pyutest_tools:basalt_stick", "" }
}
})
PyuTest.make_tool("pyutest_mithril:mithril_axe", "Mithril Axe", {
axe = 1
}, "pyutest-mithril-axe.png", {
stack_max = 1,
tool_capabilities = PyuTest.tool_caps({
uses = 5536,
attack_uses = 5536,
damage_groups = { fleshy = 12 },
groupcaps = {
choppy = {
times = {
[PyuTest.BLOCK_FAST] = 0.1,
[PyuTest.BLOCK_NORMAL] = 0.2,
[PyuTest.BLOCK_SLOW] = 0.4
}
}
}
})
})
core.register_craft({
output = "pyutest_mithril:mithril_axe",
recipe = {
{ "pyutest_mithril:mithril_shard", "pyutest_mithril:mithril_shard", "" },
{ "pyutest_mithril:mithril_shard", "pyutest_tools:basalt_stick", "" },
{ "", "pyutest_tools:basalt_stick", "" }
}
})
PyuTest.make_sword("pyutest_mithril:mithril_sword", "Mithril Sword", "pyutest-mithril-sword.png", 11, 5536, 0.55)
core.register_craft({
output = "pyutest_mithril:mithril_sword",
recipe = {
{ "pyutest_mithril:mithril_shard" },
{ "pyutest_mithril:mithril_shard" },
{ "pyutest_tools:basalt_stick" }
}
})

View File

@ -0,0 +1 @@
depends = pyutest_blocks,pyutest_tools,pyutest_ores,pyutest_worlds

View File

@ -114,12 +114,12 @@ if core.is_creative_enabled("") then
})
core.override_item("", {
range = 9,
range = 15,
tool_capabilities = caps
})
else
core.override_item("", {
range = 5,
range = 6,
tool_capabilities = PyuTest.HAND_TOOL_CAPS
})
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B