#Cancelling EntityHurt event
1 messages · Page 1 of 1 (latest)
you can only cancel beforeEvents
how do i do that?
theres no beforeevent for entityhurt
so its not possible?
what does beforeDataDrivenEntityTriggerEvent do?
wiat yeah no that doesnt work
All you can do is modify the player file to interact with the script, to be more specific you will have to change the component "Minecraft:damage_sensor"
uhuhh
so its complecated
and alot of effort that could just be like changed in the next update
It's the only way for you to cancel the damage before the event and still allow PVP
You know, several servers have been using this for years
i just started messing around with scripts like
uhhhhh
and hour ago
and i havent done mods in like a year
coz ive been busy lol
i was just messing around to try and learn
but thanks ill probably come back to it at a later date
I also haven't been working more than making mods for servers
more is that, good luck waiting for you
I was trying to do this same thing, I cancelled every non fatal damage
But a hurtEvent that fires when an entity died, well, I couldn't do anything
What I did was just cancel the damage if the entity doesn't have a tag
This helps to combat kill spawn on servers etc.
You can also turn PVP on for certain players and off for others
create team systems
among other systems that you can do
It's even better to avoid using the API script for things you can do using command or molang