Advertisement
Guest User

Untitled

a guest
Aug 11th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. @Mod(...)
  2. public class mod{
  3.     @EventHandler
  4.     public void load(FMLIntitializationEvent event){
  5.         MinecraftForge.event_bus.register(new OxygenAtmosphere);
  6.     }
  7. }
  8. import micdoodle8.mods.galacticraft.api.event.oxygen.GCCoreOxygenSuffocationEvent.Pre;
  9. public class OxygenAtmosphere{
  10.     @ForgeSubscribe
  11.     public void cancelDamage(Pre event){
  12.         if(provider.getDimensionID == OxygenAtmospherePlanetID)
  13.             event.setCancelled(true);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement