[ITEMS/pyutest_tools] Stop using maxlevel and level for determining

whether a block can be mined or not
This commit is contained in:
IamPyu
2024-10-04 22:16:25 -06:00
parent 56ed399602
commit b5512557a7
6 changed files with 5 additions and 21 deletions

View File

@@ -15,6 +15,7 @@ PyuTest.make_node = function(name, desc, groups, tiles, extra_conf)
block = 1
}),
}
conf["sounds"] = PyuTest.make_node_sounds()
if extra_conf ~= nil then
for k, v in pairs(extra_conf) do

View File

@@ -103,28 +103,24 @@ PyuTest.make_building_blocks("pyutest_blocks:stone", "Stone", { "pyutest-stone.p
ground = 1,
stone = 1,
cracky = PyuTest.BLOCK_NORMAL,
level = 1
}, { is_ground_content = true })
PyuTest.make_building_blocks("pyutest_blocks:darkstone", "Darkstone", { "pyutest-darkstone.png" }, nil, {
ground = 1,
stone = 1,
cracky = PyuTest.BLOCK_NORMAL,
level = 1
}, { is_ground_content = true })
PyuTest.make_building_blocks("pyutest_blocks:granite", "Granite", {"pyutest-granite.png"}, nil, {
ground = 1,
stone = 1,
cracky = PyuTest.BLOCK_NORMAL,
level = 1
})
PyuTest.make_building_blocks("pyutest_blocks:andesite", "Andesite", {"pyutest-andesite.png"}, nil, {
ground = 1,
stone = 1,
cracky = PyuTest.BLOCK_NORMAL,
level = 1
})
PyuTest.make_building_blocks("pyutest_blocks:sandstone", "Sandstone", { "pyutest-sandstone.png" }, nil, {

View File

@@ -171,7 +171,7 @@ PyuTest.make_node("pyutest_blocks:ladder", "Ladder", {
})
PyuTest.make_node("pyutest_blocks:magma", "Magma", {
cracky = PyuTest.BLOCK_NORMAL
cracky = PyuTest.BLOCK_FAST
}, { "pyutest-magma.png" }, {
paramtype = "light",
light_source = 11,