liquid_physics/game/default.lua
2025-01-11 22:57:44 +01:00

16 lines
642 B
Lua

local modpath = core.get_modpath(core.get_current_modname())
local internal_bucket = dofile(modpath .. "/bucket.lua")
internal_bucket.register_empty_bucket("bucket:bucket_empty")
-- Settings
if core.settings:get_bool("liquid_physics_enable_water_physics", false) then
liquid_physics.register_liquid("default", "water_source", "water_flowing")
internal_bucket.register_filled_bucket("bucket:bucket_water")
end
if core.settings:get_bool("liquid_physics_enable_lava_physics", false) then
liquid_physics.register_liquid("default", "lava_source", "lava_flowing")
internal_bucket.register_filled_bucket("bucket:bucket_lava")
end