Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SideOnly(Side.CLIENT)
- @SubscribeEvent
- public void onInteract(PlayerInteractEvent.RightClickItem e) {
- if (e.getEntityPlayer().getHeldItem(EnumHand.MAIN_HAND).getItem().getUnlocalizedName().equalsIgnoreCase("item.misc_magnifying_glass")) {
- if (PlayerMethods.isPlayerCultivator(e.getEntityPlayer())) {
- PlayerMethods.sendMsgToPlayer(e.getEntityPlayer(), ("Your current cultivation level is " + PlayerMethods.getEntityCultivationLevel(e.getEntityPlayer())));
- } else {
- PlayerMethods.sendMsgToPlayer(e.getEntityPlayer(), "This magnifying glass seems mysterious, maybe if you had more spiritual understanding you could use it");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement