#Would raycasting be better?

1 messages ยท Page 1 of 1 (latest)

delicate pollen
#

use EntityDie event

marsh hamlet
#

I tried that but because it triggers after the death it doesn't trigger the event. I'll try again soon and let you know how I get on

delicate pollen
#

what the event do

#

random idea but if it is custom entity you can make the entity health higher
like if the entity health is 20 change it to 100 and kill the entity if the health reached 80
that will fix the one hit problem

marsh hamlet
# delicate pollen what the event do

I have component groups with "mark_variant", which I can call on in the loot table.
So if the player has a score of 3 for example, then I want the entity to have mark_variant 3 and then in the loot table i can set a condition for the mark_variant. This is for vanilla and custom entities, but it may be easier to do it inside behaviours

delicate pollen
#

hmm i think it is better using entity property
yo can change it directly with script and you can read it by molang

marsh hamlet
#

yeah, thats what I thought, thanks Minato ๐Ÿ˜‰

delicate pollen
#

that won't fix your problem ๐Ÿ˜