Topic category: Help with Minecraft modding (Java Edition)
Hello everyone I'm creating a map in minecraft on version 1.12.2. I needed to develop a mod for the map. I decided to use MCreator 2020.2. Well, I needed to create a mod for a bat that, when hit, imposes various effects on the player who was hit, which I have already added and done. And so I need to add a cooldown to a hit with this bat. I was thinking of using the Cooldown current item block for 200 ticks for provided. But as it turned out, provided is an entity in (my situation, the player) that did not hit, but which was hit. That is, the player will hit with the bat, but the cooldown will not be given to him, but to the player he hit. And I need to somehow replace it with provide, replace it with source, or something like that. Someone can suggest a specific plugin, or someone has other ideas on how to organize this cooldown, please write to me.
Aren't you able to just swap out the event/target entity procedure block in the cooldown procedure block for the source entity procedure block?
Maybe I'm stupid or blind, but I don't understand how to change it. Catnip