Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SubscribeEvent
- public void onClientTick(PlayerTickEvent event){
- MovingObjectPosition pos = Minecraft.getMinecraft().objectMouseOver;
- if (pos != null && pos.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)
- {
- if (event.player != null && event.player.worldObj.getBlock(pos.blockX, pos.blockY, pos.blockZ) == SuperMassiveTech.blockRegistry.blackHoleStorage)
- {
- EntityPlayer player = event.player;
- System.out.println(player.toString());
- player.setLocationAndAngles(player.posX, player.posY - 1.6, player.posZ, player.rotationYaw, player.rotationPitch - 30);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment