Modding turrets

Json Template
{     "displayName": "Dark Matter Turret", "type": "turret", "health": 28, "mass": 10, "graphic": "mk22Tbase", "recipe": { "steel plate": 10 },     "bullet_spawn_positions": { {           "x": 16, "y": 0 },        {            "x": 16, "y": -16 },        {            "x": 16, "y": 16 }     },      "barrelsprite": "darkmatter", "turret_rotation_speed": 1, "projectile_count": 1, "projectile": "darkmatter", "projectile_speed": 10, "projectile_angle_variance": 0, "projectile_lifetime": 1, "energy_consumption": 1166, "fire_delay": 380, "damage_min": 90, "damage_max": 250, "concumption_target": "ammo", "concumption_target_count": 2 }

Part specific properties

 * "barrelsprite" - The image to use for drawing the barrel
 * "projectile_count" - How many projectiles the turret creates
 * "projectile" - The name of the projectile to create
 * "projectile_angle_variance" - The random angle added to projectiles
 * "energy_consumption" - How much energy the projectiles use
 * "damage_min" - The minimum damage for the projectile
 * "damage_max" - The maximum damage for the projectiles

Optional part properties

 * "projectile_speed" - default: 5, How fast the projectile gets fired
 * "turret_rotation_speed" - default: 5, How fast the turret rotates
 * "projectile_lifetime" - default: 5, How long projectiles last
 * "concumption_target" - The item to consume when firing
 * "concumption_target_count" - default: 1, The ammount to consume when firing
 * "fire_delay" - default: 60, How long it takes to fire the cannon
 * "bullet_spawn_positions" - default: Center of turret, A list of points you want to spawn points of relitive to the position and rotation of the turret.

Back to the modding navigation