im new to the modding and just managed to get my first few items into the game. Now I m trying to create a entity, its working fine but the visuals are missing as you can see on the screenshot.

Here is the code
Code: Select all
{
type = "assembling-machine",
name = "oxygen-refiller",
icon = "__spatium__/graphics/icons/oxygen-refiller.png",
flags = {"placeable-neutral","placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "oxygen-refiller"},
max_health = 300,
corpse = "big-remnants",
dying_explosion = "medium-explosion",
resistances =
{
{
type = "fire",
percent = 70
}
},
working_sound =
{
sound = {
{
filename = "__base__/sound/assembling-machine-t3-1.ogg",
volume = 0.8
}
},
},
collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
{
filename = "__spatium__/graphics/entitys/oxygen-refiller.png",
priority = "high",
width = 32,
height = 32,
frame_count = 1,
shift = {1.21875, -0.125}
},
fast_replaceable_group = "assembling-machine",
crafting_categories = {"crafting", "advanced-crafting", "crafting-with-fluid"},
crafting_speed = 1.25,
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
emissions = 0.03 / 3.5
},
energy_usage = "210kW",
ingredient_count = 6,
module_specification =
{
module_slots = 4
},
allowed_effects = {"consumption", "speed", "productivity", "pollution"}
}
I dont need any animation or smth. Dont know if this is the right way to implement just a single frame. Could somone please explain my failure to me ?
