Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WorldTickEvents {
- int gameTick = 0;
- @SubscribeEvent
- public void onWorldUpdate(TickEvent.WorldTickEvent e)
- {
- gameTick++;
- for(EntityPlayer player : e.world.playerEntities)
- {
- if(gameTick > 100)
- {
- if(((PlayerPlaceSatanicAltarIEEP)player.getExtendedProperties(PlayerPlaceSatanicAltarIEEP.EXT_PROP_NAME)).getAltarCooldown() > 0)
- {
- int cooldown = ((PlayerPlaceSatanicAltarIEEP)player.getExtendedProperties(PlayerPlaceSatanicAltarIEEP.EXT_PROP_NAME)).getAltarCooldown();
- ((PlayerPlaceSatanicAltarIEEP)player.getExtendedProperties(PlayerPlaceSatanicAltarIEEP.EXT_PROP_NAME)).setAltarCooldown(cooldown - 1);
- }
- gameTick = 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement