Started by
zerosevenine
on
Topic category: Help with Minecraft modding (Java Edition)
Hello!
I'm making a mod including cool, battle-used tools and weapons.
I'd like to make a weapon which would give a specific custom effect (which i already have, lets call it *) upon hitting an entity.
This effect wouldn't do anything on it's own, but here comes the twist - rightclicking this weapon will briefly weaken and slow everyone having this specific effect and noone else, not dependant on reach or such.
So in conclusion, the only thing i need to know, is if there is a way to get ALL entities having the effect * - and only better, if it would be possible to have these entities as sort of a variable or a tag.
Thanks beforehand.
Edited by zerosevenine on Tue, 01/25/2022 - 21:55
this works but you NEED to right click on an entity
any entity not just one with the effect
And isn't it possible to make it straight the way of "get all entities with effect"? Isn't there some sort of mod or procedure addon for this?
You can do it with the global trigger "On entity tick" or something like that. The procedure will be executed for every entity.