ProcessingContainerStation & ProcessingFuelStation: add draft bonfire and steel pot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user