The internal equipment names not working.
You can find a list of air equipment names here: https://steamcommunity.com/sharedfiles/filedetails/?id=1679531581
To give a ship, I believe you need to create a variant first, like so:
create_equipment_variant = {
name = "Yamato Class"
type = ship_hull_super_heavy_1
name_group = JAP_BB_HISTORICAL
parent_version = 0
modules = {
fixed_ship_battery_slot = ship_super_heavy_battery_1
fixed_ship_anti_air_slot = ship_anti_air_2
fixed_ship_fire_control_system_slot = ship_fire_control_system_1
fixed_ship_radar_slot = empty
fixed_ship_engine_slot = heavy_ship_engine_2
fixed_ship_secondaries_slot = ship_secondaries_2
fixed_ship_armor_slot = ship_armor_shbb
front_1_custom_slot = ship_anti_air_1
front_2_custom_slot = empty
mid_1_custom_slot = empty
mid_2_custom_slot = ship_secondaries_2
mid_3_custom_slot = ship_secondaries_2
rear_1_custom_slot = ship_super_heavy_battery_1
rear_2_custom_slot = ship_airplane_launcher_1
}
}
And then have it be built instantly:
hidden_effect = {
add_equipment_production = {
equipment = {
type = ship_hull_super_heavy_1
creator = "JAP"
version_name = "Yamato Class"
}
name = "Yamato"
requested_factories = 1
progress = 0.75 #Setting to 1 should have it insta-build
amount = 1
}