Modding laserturrets

Json Template
{     "displayName": "Laser Turret", "type": "laserturret", "health": 28, "mass": 10, "graphic": "laserturret_base", "recipe": { "steel plate": 10 },     "bullet_spawn_positions": { {           "x": 16, "y": 0 },        {            "x": 16, "y": -16 },        {            "x": 16, "y": 16 }     },      "damagemultipliers": { "armor": 1.0, "shields": 1.0 },     "barrelsprite": "Turret_test_barrelLaser", "icon": "Turret_test_barrelLaser", "range": 1, "energy_consumption": 1, "damage_min": 1, "damage_max": 1, "img_laser_begin": "TestLaserTurret_laser_begin", "img_laser_base": "TestLaserTurret_laser_base", "img_laser_end": "TestLaserTurret_laser_begin", }

Part specific properties

 * "barrelsprite" - The image to use for drawing the barrel
 * "energy_consumption" - How much energy the projectiles use
 * "damage_min" - The minimum damage for the projectile
 * "damage_max" - The maximum damage for the projectiles
 * "range" - How far do you want the laser to shoot
 * "img_laser_begin" - The image you want to use for the beginning part of the laser
 * "img_laser_base" - The image you want to use for the laser itself
 * "img_laser_end" - The image you want to use for the end of the laser
 * "damagemultipliers" - How much you damage you want specific things to take
 * "armor" - The damage multiplier to armor
 * "shields" - The damage multiplier to shields

Optional part properties

 * "turret_rotation_speed" - default: 5, How fast the turret rotates
 * "fire_delay" - default: 60, How long it takes to fire the cannon
 * "bullet_spawn_positions" - default: Center of turret(x: 0, y:0), A list of points you want to spawn points of relitive to the position and rotation of the turret.

Back to the modding navigation