Because that would lag like crazy.I'm not great at coding but why not make a infante oxygen bubble generator deep below the surface?
Temporary just until micdoodle8 adds the option for air.Because that would lag like crazy.
Every time the world is generated further, the bubble would have to expand.
The older builds had an Oxygen block, idk why Mic removed it.Temporary just until micdoodle8 adds the option for air.
The way I learned java was through some classes and mostly looking at other people's code. I still do that when trying to make my addon. Mic's code is great for learning off of, and if you want to make an addon, you need to take a look at it.I know the language of English and some Java just enough for coding I haven't done any collage classes though.
If you know basic forge, then he added an event. When that even is called, you would check to see if the dimension the entity being damaged is the dimension you want to have air in. If so, cancel the event.I've already seen it, but I still do not understand how to make the air on their planet. He may be added to Use API but not explained.
I for some reason it does not work, you can give an example?If you know basic forge, then he added an event. When that even is called, you would check to see if the dimension the entity being damaged is the dimension you want to have air in. If so, cancel the event.
Simple.
public class GCPrometheusEvents
{
WorldProvider provider;
@ForgeSubscribe
public void cancelDamage(Pre event)
{
try
{
if(provider.dimensionId == GCPrometheusConfigManager.dimensionIDPrometheus)
{
event.setCanceled(true);
}
else
{
event.setCanceled(false);
}
}
catch (Exception e)
{
GCLog.info("Problem with air.");
e.printStackTrace();
}
}
}
Thank you very much for your help!What's wrong is that you did not initialize the provider variable. Your problem is a basic java one. If you don't know java, there isn't much I can help you with. However, to initialize it, use provider = event.provider;
That is the line of code you are missing.
This requires at least a basic knowledge of Java.How to Make a planet Like Mars please Help Me!!!!