Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void updateTick(World world, int i, int j, int k, Random random)
- {
- System.out.println("running update tick");
- EntityPlayer player = world.getClosestPlayer(i, j, k, 0);
- player.addChatMessage("Running update tick...");
- int range = 5;
- if(player.posX > i - range || player.posX < i + range)
- {
- if(player.posY > i - range || player.posY < i + range)
- {
- if(player.posZ > i - range || player.posZ < i + range)
- {
- System.out.println("Do this");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement