A lot more changes, notably adding shears and a failed attempt to fix

bedrock spawning
This commit is contained in:
IamPyu
2024-10-15 17:09:08 -06:00
parent 3e99d422ef
commit e2ab26594d
12 changed files with 103 additions and 17 deletions

View File

@@ -36,7 +36,8 @@ end
PyuTest.make_sword = function (nsname, desc, texture, damage, durability, atkspeed)
PyuTest.make_tool(nsname, desc, {
weapon = 1
weapon = 1,
sword = 1
}, texture, {
stack_max = 1,
tool_capabilities = PyuTest.tool_caps({

View File

@@ -131,6 +131,34 @@ PyuTest.make_tool("pyutest_tools:diamond_axe", "Diamond Axe", {}, "pyutest-diamo
})
})
PyuTest.make_tool("pyutest_tools:shears", "Shears", {
shears = 1
}, "pyutest-shears.png", {
stack_max = 1,
tool_capabilities = PyuTest.tool_caps({
uses = 100,
attack_uses = 50,
groupcaps = {
snappy = {
times = {
[PyuTest.BLOCK_FAST] = 0.2,
[PyuTest.BLOCK_NORMAL] = 0.3,
[PyuTest.BLOCK_SLOW] = 0.4
}
},
wooly = {
times = {
[PyuTest.BLOCK_FAST] = 0.2,
[PyuTest.BLOCK_NORMAL] = 0.3,
[PyuTest.BLOCK_SLOW] = 0.4
}
}
}
})
})
PyuTest.make_item("pyutest_tools:bomb", "Bomb", {}, "pyutest-bomb.png", {
stack_max = 16,
on_use = function (_, user)