Plugin category: Mechanical Minecraft version: 1.12.2 Suggested name: denyEndCrystal What I want: I would like a simple cancel plugin that would deny interaction with End Crystal. This is for all default players. Commands: No commands Permissions: No permissions Thank you for reading.
I've started work on this now. Expect it to be completed within a few minutes. I'll edit this message and add the completed resource file when finished. Here it is: https://www.dropbox.com/s/wpdjcn2uk6duj5a/DenyEndCrystals-1.0.0-SNAPSHOT.jar?dl=0
@timtower I haven't, but why would that matter? Not gonna lie I didn't test the plugin at all, but apparently there's an issue with it cause the requester and I have been having a conversation back and forth and there's some error in console. I wouldn't think it would matter what's going on in the air, and I could just cancel the PlayerInteractEvent if the clicked block type is Material.END_CRYSTAL
@madtomic @Cervisial To both, keep the conversation in the thread, don't go to PM. The thread is made for talking. @Cervisial If you click the AIR then the block is null, call a method on it and you get a NullPointerException, add a null check.
@timtower I only moved to PM originally cause I wanted to give him the resource faster because you weren't online at the time when I finished the plugin, so my post couldn't be approved, but we'll keep all our contact now in this thread. Gotcha. Yeah, I suppose that would cause an issue. I'll edit this post with an updated version with the NullCheck. @madtomic Here's the updated version with the fix: https://www.dropbox.com/s/pcnjgs4ellzrg57/DenyEndCrystals-1.0.0-SNAPSHOT.jar?dl=0
@Cervisial The null error is fix but end crystal is still blowing up when interacted. @timtower Understood. Like he said, you weren't around to approve his post so we talked a bit on PM. We'll keep it here now.
@madtomic I think this is due to the fact that end crystals are entities, as well as blocks. I'll be updating it to hopefully stop this now and I'll edit this post with the updated version, once again. Here ya are: https://www.dropbox.com/s/6o9004u6tuk1jrv/DenyEndCrystals-1.0.0-SNAPSHOT.jar?dl=0 Hopefully, this is the last issue we have with it, but let me know if anything is wrong.
Hey, I've been having trouble blocking this too. If it isn't too hard, could you put in an Override(like so people could still interact if they had that perm). Thanks!
@Cervisial i think the problem you had was checking for the End Crystal. Since End Crystals are considered entities, you would check for EntityType.ENDER_CRYSTAL , and use PlayerInteractEntityEvent or EntityDamageByEntityEvent @madtomic i finished it, here it is: (You can enable/disable player projectiles in the config aswell) https://www.dropbox.com/s/brvnk4doevi6d9s/denyEndCrystalPlugin.jar?dl=0
@Cervisial Thank you for trying. @Legendary_zotar Thank you for taking up on this. It works just the way I needed it. Case closed!