Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.uranium.UraniumFevermod;
- import net.minecraft.entity.EntityLiving;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.potion.PotionEffect;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.world.World;
- public class TileEntitynuclearWasteBarrel extends TileEntity {
- public int direction;
- public void TileEntityDetection() {
- }
- EntityLiving entity;
- public boolean anyPlayerInRange() {
- return this.worldObj.getClosestPlayer((double)this.xCoord + 0.5D, (double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D, 5) != null;
- }
- public void updateEntity() {
- if(this.anyPlayerInRange()){
- if (!this.worldObj.isRemote) {
- entity.addPotionEffect(new PotionEffect(UraniumFeverMod.Rads.getId(), 100, 0));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement