Code: Select all
data:extend(
{
{
type = "generator",
name = "put the name of generator",
icon = "put the generator icon location here ",
icon_size = 64, icon_mipmaps = 4,
flags = {"placeable-neutral","player-creation"},
minable = {mining_time = 0.3, result = "put the name of generator"},
max_health = 400,
dying_explosion = "medium-explosion",
corpse = "steam-engine-remnants",
dying_explosion = "steam-engine-explosion",
alert_icon_shift = util.by_pixel(3, -34),
effectivity = 0.5,
fluid_usage_per_tick = 0.2,
maximum_temperature = 10,
scale_fluid_usage=true,
resistances =
{
{
type = "fire",
percent = 70
},
{
type = "impact",
percent = 30
}
},
fast_replaceable_group = "put the name of generator",
collision_box = {{-1.0, -1.0}, {1.0, 1.0}},
selection_box = {{-1.0, -1.0}, {1.0, 1.0}},
--damaged_trigger_effect = hit_effects.entity(),
fluid_box =
{
base_area = 10,
height = 2,
base_level = 10,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{ type = "input", position = {0, 1.1} },
{ type = "input", position = {0, -1.1} },
{ type = "input-output", position = {3, 0} },
{ type = "input-output", position = {-3, 0} }
},
production_type = "input",
filter = "put the fluid you created here",
minimum_temperature = 1
},
energy_source =
{
type = "electric",
usage_priority = "secondary-output",
},
max_power_output="100KW",--change this to redefine the power output
horizontal_animation =
{
layers =
{
{
filename = "put the sprite sheet location here",
width = 250,
height = 200,
frame_count = 11,
line_length = 3,
--shift = util.by_pixel(1, -5),
hr_version =
{
filename = "put the sprite sheet location here",
width = 250,
height = 200,
frame_count = 11,
line_length = 3,
--shift = util.by_pixel(1, -4.75),
scale = 0.5
}
},
{
filename = "put the sprite sheet shadow location here",
width = 250,
height = 200,
frame_count = 11,
line_length = 3,
draw_as_shadow = true,
shift={0.5, 0},
hr_version =
{
filename = "put the sprite sheet shadow location here",
width = 250,
height = 200,
frame_count = 11,
line_length = 3,
draw_as_shadow = true,
shift={0.5, 0},
scale = 0.5
}
}
}
},
vertical_animation =
{
layers =
{
{
filename = "put the sprite sheet location here",
width = 250,
height = 200,
frame_count = 11,
line_length = 3,
--shift = util.by_pixel(5, -6.5),
hr_version =
{
filename = "put the sprite sheet location here",
width = 250,
height = 200,
frame_count = 11,
line_length = 3,
--shift = util.by_pixel(4.75, -6.25),
scale = 0.5
}
},
{
filename = "put the sprite sheet shadow location here",
width = 250,
height = 200,
frame_count = 11,
line_length = 3,
draw_as_shadow = true,
shift={0.5, 0},
hr_version =
{
filename = "put the sprite sheet shadow location here",
width = 250,
height = 200,
frame_count = 11,
line_length = 3,
draw_as_shadow = true,
shift={0.5, 0},
scale = 0.5
}
}
}
},
smoke =
{
{
name = "light-smoke",
north_position = {0.9, 0.0},
east_position = {-2.0, -2.0},
frequency = 10 / 32,
starting_vertical_speed = 0.08,
slow_down_factor = 1,
starting_frame_deviation = 60
}
},
--vehicle_impact_sound = sounds.generic_impact,
-- open_sound = sounds.machine_open,
-- close_sound = sounds.machine_close,
working_sound =
{
sound =
{
filename = "__base__/sound/steam-engine-90bpm.ogg",
volume = 0.55
},
match_speed_to_activity = true,
audible_distance_modifier = 0.8,
max_sounds_per_type = 3,
fade_in_ticks = 4,
fade_out_ticks = 20
},
min_perceived_performance = 0.25,
performance_to_sound_speedup = 0.5,
water_reflection =
{
pictures =
{
filename = "__base__/graphics/entity/steam-engine/steam-engine-reflection.png",
priority = "extra-high",
width = 40,
height = 44,
shift = util.by_pixel(0, 55),
variation_count = 2,
repeat_count = 2,
scale = 5
},
rotate = false,
orientation_to_variation = true
}
},
})