Hello, I want to implement the burning of the player in the sun, like zombies or other hostile mobs. But I don't understand how to do this. I found the /ex burn command, but I think it will be incorrect to constantly check where the player is walking and what is on his head. Perhaps there is a more optimal solution? (If it is not difficult, because I am slow-witted to write an example.)
#(faylik) Player burning
27 messages · Page 1 of 1 (latest)
(faylik) Player burning
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
!m should_burn
(Property) If the entity is a Zombie, Skeleton, or Phantom, controls whether it should burn in daylight.
Required Plugins or Platforms
Paper
Group
Properties
Object
EntityTag
Input
ElementTag(Boolean)
Tags
<EntityTag.should_burn> (Property) If the entity is a Zombie, Skeleton, or Phantom, controls wheth...
checked, does not work on players
everytime this event triggrs
!e player steps on block
Group
Player
**WARNING**
This event may fire very rapidly.
Event Lines
player steps on block player steps on <material>
Triggers
when a player steps onto a specific block material.
Has Player
Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
Context
<context.location> returns a LocationTag of the block the player is stepping on.
<context.previous_location> returns a LocationTag of where the player was before stepping onto the block.
<context.new_location> returns a LocationTag of where the player is now.
Has Known Location
True - this adds switches in:<area> + location_flagged:<flag name>.
Cancellable
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
Possible Confusion
Did you mean to search for locationtag.light?
Returns the total amount of light on the location.
Group
world
Returns
ElementTag(Number)
Returns the amount of light from the sky that is
on the location.
Group
world
Returns
ElementTag(Number)
that would probably be your best way to do this along with burn then
By the way, I didn't think about it, I'll try tomorrow, thanks. I'll write about the result.
wish I knew this sooner
I checked it, it really works, thank you very much
Thread Closing Reminder
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@thin current