Fix effects and new iron ore color

This commit is contained in:
IamPyu 2025-01-03 20:35:27 -06:00
parent 52eea966d9
commit a81d0859bf
3 changed files with 7 additions and 2 deletions

View File

@ -28,7 +28,8 @@ PyuTest.status_effect_get = function(player, name)
end
PyuTest.status_effect_has = function(player, name)
return effects[player][name] ~= false
local e = effects[player][name]
return e ~= false and e ~= nil
end
core.register_on_joinplayer(function (player)

View File

@ -9,7 +9,7 @@ PyuTest.register_status_effect("speed", function(object, name)
PyuTest.hunger_multiplier(name, 1)
end
local fovm = (1 + (speed_multiplier) * sprint_addition)
object:set_physics_override({
speed = speed_multiplier,
})

View File

@ -114,12 +114,16 @@ PyuTest.make_ore_and_item("pyutest_ores:iron", "Iron", "ingot", "Ingot", {
wherein = PyuTest.ORE_STONES,
ore_strength = PyuTest.BLOCK_NORMAL,
ore_color = "#EDC9AF"
},
item_texture = "pyutest-ingot.png",
make_raw = true,
raw_texture = "pyutest-lump.png",
raw_conf = {
color = "#EDC9AF"
},
block_tiles = { "pyutest-metal.png" },
})