2018-07-28 16:15:16 +00:00
|
|
|
-- Fluidity for Minetest 5.0.0+
|
2019-03-09 11:49:50 +00:00
|
|
|
-- Copyright (c) 2019 Evert "Diamond" Prants <evert@lunasqu.ee>
|
2018-04-06 10:22:15 +00:00
|
|
|
|
2018-04-02 10:39:41 +00:00
|
|
|
fluidity = rawget(_G, "fluidity") or {}
|
|
|
|
|
|
|
|
local mpath = minetest.get_modpath("fluidity")
|
|
|
|
fluidity.modpath = mpath
|
|
|
|
|
2018-06-20 16:58:58 +00:00
|
|
|
function fluidity.fluid_short(str)
|
|
|
|
return string.lower(str):gsub("%s", "_")
|
|
|
|
end
|
2018-04-02 10:39:41 +00:00
|
|
|
|
2018-04-04 17:19:33 +00:00
|
|
|
-- Molten metals
|
2018-04-02 10:39:41 +00:00
|
|
|
dofile(mpath.."/molten.lua")
|
|
|
|
|
2019-03-09 11:49:50 +00:00
|
|
|
-- Meltable metals list
|
|
|
|
dofile(mpath.."/meltable.lua")
|
|
|
|
|
2018-04-06 12:05:04 +00:00
|
|
|
-- Florbs
|
|
|
|
dofile(mpath.."/florbs.lua")
|
|
|
|
|
2018-04-04 17:19:33 +00:00
|
|
|
-- Register everything
|
|
|
|
dofile(mpath.."/register.lua")
|