Topic category: Help with modding (Java Edition)
So, this is probably pretty basic knowledge, but I want to make an entity attack you when you are holding a sword. I heard it's possible by "return" procedure blocks, but could someone tell me, how exactly should the procedure look? I mean, I can check if the player is holding sword (the player is event/target entity in this case, right?), but I can't find the right "return" and "true/false" blocks arrangemet. I've tried everything I could think of.