SHOW:
|
|
- or go back to the newest paste.
| 1 | - | private boolean foundBlock = false; |
| 1 | + | |
| 2 | - | private boolean rand1 = false, rand2 = false; |
| 2 | + | |
| 3 | MovingObjectPosition pos = Minecraft.getMinecraft().objectMouseOver; | |
| 4 | if (pos != null && pos.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) | |
| 5 | {
| |
| 6 | if (event.player != null && event.player.worldObj.getBlock(pos.blockX, pos.blockY, pos.blockZ) == SuperMassiveTech.blockRegistry.blackHoleStorage) | |
| 7 | {
| |
| 8 | EntityPlayer player = event.player; | |
| 9 | System.out.println(player.toString()); | |
| 10 | player.setLocationAndAngles(player.posX, player.posY - 1.6, player.posZ, player.rotationYaw, player.rotationPitch - 30); | |
| 11 | } | |
| 12 | - | rand1 = foundBlock ? rand1 : new Random().nextBoolean(); |
| 12 | + | |
| 13 | - | rand2 = foundBlock ? rand2 : new Random().nextBoolean(); |
| 13 | + |