2021-06-01 18:35:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
local function translate_name(name)
|
|
|
|
if name:find(":") == 1 then
|
|
|
|
name = name:sub(2)
|
|
|
|
end
|
|
|
|
|
|
|
|
return name
|
|
|
|
end
|
|
|
|
|
2025-01-03 15:59:09 -08:00
|
|
|
local function is_water_node(node)
|
|
|
|
if type(node) == "table" and node.groups ~= nil and (node.groups.liquid or node.groups.water) then
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
local function is_burning_node(node)
|
|
|
|
if type(node) == "table" and node.groups ~= nil and (node.groups.igniter or node.groups.fire or node.groups.lava) then
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
return translate_name, is_water_node, is_burning_node
|