ProcessingContainerStation & ProcessingFuelStation: add draft bonfire and steel pot

This commit is contained in:
Van
2026-06-07 21:52:04 +03:00
parent 8307de77eb
commit 44049de290
8 changed files with 554 additions and 23 deletions

View File

@@ -392,7 +392,43 @@ ProcessingFuelStation:new({
{
settings = {
name = 'test_processing_node',
drawtype = 'mesh',
mesh = 'test_bonfire.obj',
tiles = {'test_bonfire.png'},
},
})
--]]
core.register_abm({
label = 'test_bonfire_fire',
name = 'smc__core__processing_fuel_station:test_processing_node_abm',
interval = 1.0,
chance = 1,
nodenames = {'processing_fuel_station:test_processing_node'},
---@param pos MapVector
action = function(pos, node, active_object_count, active_object_count_wider)
---@type ProcessingFuelStation.MetaData
local meta = core.get_meta(pos)
if meta:get_float("remaining_fuel") > 0 then
core.add_particlespawner({
amount = 10,
time = 1,
size = 2,
pos = {
min = pos - v(0.4, 0.4, 0.4) + v(0, 0.3, 0),
max = pos + v(0.4, 0.4, 0.4) + v(0, 0.3, 0),
},
texture = {
name = 'test_fire_part.png',
animation = {
type = "vertical_frames",
aspect_w = 3,
aspect_h = 4,
length = -1,
},},
})
end--]]
end
})
return ProcessingFuelStation