Started by
The_Big_Monke_Guy
on
Topic category: Help with Minecraft modding (Java Edition)
I tried making an entity that uses ranged attacks, but if i put more than one it accidentally shoots the others i put on, can i make it so the ranged item just passes through (ignores) every entity but damages ones i choose (for example: It passes through every mob but zombies and slimes).
Any help is appreciated
Edited by The_Big_Monke_Guy on Thu, 02/15/2024 - 21:35
im not sure, however i can make it not hurt itself.
before entity gets hurt
check if the entity is the right one
if so, check if the source entity is event/target entity
if so, set health for target entity to plus one.
it wont take damage