RunCode Global.getSector().getStarSystem("System_Name").addAsteroidBelt("star_name", 150, 3600, 170, 200, 250, Terrain.ASTEROID_BELT, "Belt Name")
The first Asteroid was written as astroid. That would break the code. Try it now!
Also, make sure to change the "Name" to what the the system, star and asteroid belt are named. The first two are there and the third just make one up.
Alright so I applied it, and I got this error:
Compilation failed:org.codehaus.commons.compiler.CompileException: Line 1, Column 71: No applicable constructor/method found for actual parameters "java.lang.string, int, int, int, int, int, java.lang.string, java.lang.string"; candidates are: "public abstract com.fs.starsector.api.campaign.SectorEntityToken com.fs.starfarer.api.campaign.LocationAPI.addAsteroidBelt(com.fs.starfarer.api.campaign.SectorEntityToken, int, float, float, float, float)", ""public abstract com.fs.starfarer.api.campaign.SectorEntityToken com.fs.starfarer.api.campaign.LocationAPI.addAsteroidBelt(com.fs.starfarer.api.campaign.SectorEntityToken, int, float, float, float, float, java.lan.string, java.lang.string)"
probably has something to do with the values after the addAsteroidBelt