Hey, I want to code something on the version 1.15.2. If I hold the Blaze Rod and right click a Player, he should get in a list. And if he dies, the Player who right clicked him should get Strength and Resistance. Can someone send the code here? If it's not understandable please say it, I will explain it better.
@godveno Who do you want the code? Why not try to make it yourself and ask for help when you can't figure something out?
@godveno Listen for the PlayerInteractEntityEvent. Check if the player is holding a blaze rod. Check if the entity being clicked is a player. Start with that
Player#getInventory()#getItemInMainHand() Then check if it is null, if not null, check if the type is a blazerod