#(paintsplat) find material at location
25 messages · Page 1 of 1 (latest)
(paintsplat) find material at location
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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
sorry ifi seem annoying. can you refer me to which tag i should use?
debug: true
type: world
events:
on delta time secondly every:1:
- foreach <server.online_players> as:__player:
- if <player.standing_on> == soul_sand:
- narrate "passed2"```
i need to replace the <player.standing_on> with a check of what material the player is standing on
!t locationtag.material
Returns the material of the block at the location.
world
MaterialTag
/ex narrate <player.standing_on> returns a locationtag
/ex narrate <player.standing_on.material> will return the material at the given location
thanks
Player
This event may fire very rapidly.
player steps on block player steps on <material>
when a player steps onto a specific block material.
Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
<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.
True - this adds switches in:<area> + location_flagged:<flag name>.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
I need oit to be a repeat tho
i need it to repeat every second
I got it working with desert_soulssand: debug: false type: world events: on delta time secondly every:1: - foreach <server.online_players> as:__player: - if <player.world.name> == Desert_Palace && <player.standing_on.material> == m@soul_sand: - execute as_server "rpg admin resource-health take <player.name> 2.5" desert_soulsoil: debug: false type: world events: on delta time secondly every:1: - foreach <server.online_players> as:__player: - if <player.world.name> == Desert_Palace && <player.standing_on.material> == m@soul_soil: - execute as_server "rpg admin resource-health take <player.name> 2.5"
thanks