-
Notifications
You must be signed in to change notification settings - Fork 3
Add on Effects
Eleksploded edited this page Aug 6, 2019
·
8 revisions
- Setup Mod Environment and add LavaDynamics. (If you don't know how, look up a tutorial online)
- Create a class that implements
IPostGenEffect
fromcom.eleksploded.lavadynamics.postgen.IPostGenEffect
- Return the name of your effect in the
getName()
method. Best to use all lowercase. - Write your effect in
void execute(Chunk chunk, int top)
-
chunk
is the chunk the volcano is in. -
top
is the y-level of the top of the volcano
-
- Register an instance of your class by using
PostGenEffectRegistry.registerEffect(<youreffectclassinstance>)
inFMLPostInitializationEvent
- (Pre-5.6.3) Be sure to add your Lowercase effect name to the LavaDynamics config (Post-5.6.3, this is no longer necessary)
- Profit.
- You can get the world from the volcano chunk using
chunk.getWorld()
-
PostGenEffectUtils
has some methods to help you out (Versions are noted after method)-
getVolcanoTop
Gives the top of the volcano in aBlockPos
(5.6.7)
-