liquid_physics/game/voxelibre.lua

16 lines
659 B
Lua
Raw Normal View History

2025-01-11 21:57:44 +00:00
local modpath = core.get_modpath(core.get_current_modname())
local internal_bucket = dofile(modpath .. "/bucket.lua")
internal_bucket.register_empty_bucket("mcl_buckets:bucket_empty")
-- Settings
if core.settings:get_bool("liquid_physics_enable_water_physics", false) then
liquid_physics.register_liquid("mcl_core", "water_source", "water_flowing")
internal_bucket.register_filled_bucket("mcl_buckets:bucket_water")
end
if core.settings:get_bool("liquid_physics_enable_lava_physics", false) then
liquid_physics.register_liquid("mcl_core", "lava_source", "lava_flowing")
internal_bucket.register_filled_bucket("mcl_buckets:bucket_lava")
end