duplicated
Closed
duplicated
Why do you interact with the mob twice (from MythicMobs)
• The entirety of each relevant config file (mob, skill, randomspawner, etc.) MythicMobs Mob Config: https://pastebin.com/xyA07trR (Villagers.yml)
• An unedited server latest.log file from server start to "Done!" Server Latest Log: https://pastebin.com/Hi4YhzpA (latest.log)
• A snippet from a log file with the MythicMobs debugger enabled where you have attempted to trigger the behavior at issue (you may need to use level 4 - /mm debug 4 - to generate useful logs, be sure to /mm debug 0 after) MythicMobs Debugger Enabled Snippet: https://pastebin.com/96DeX7mm (Snippet from latest.log)
My Code Snippet: https://pastebin.com/CEASxfDU (The 2 "Test"s in latest.log)
• You must specify what you intend to happen, what happens instead, and why you think it's not working. I intend for the "Test" message to only output once (When right clicking the MythicMob, normal mobs output 1 Test but only the MythicMobs output 2), What happens instead is that the "Test" message outputs twice, I think it's not working because when you disguise the Mythic Mob it makes 2 entites with the same id (Just a guess but I highly doubt that's the issue)
assigned to @ashijin
added Bug label
changed milestone to %4.11.X
This is not a bug with MythicMobs. In some cases Bukkit will fire the event twice, once for each hand, so you need to specify in your code which hand you are executing the event for:
@EventHandler public void onPlayerInteractEntityEvent(PlayerInteractEntityEvent event) { if(e.getHand() == EquipmentSlot.HAND) { System.out.println("Test"); } }
Edited by Ashijinadded Probably Not MythicMobs label