#(paintsplat) find material at location

25 messages · Page 1 of 1 (latest)

muted dagger
#

Ive been looking through metadocs for a bit and i need to check

if %material at location% == %material%

i need to check if a certain coordinate contains X block

obtuse heronBOT
#

(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>

muted dagger
#

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"```
young perchBOT
muted dagger
#

i need to replace the <player.standing_on> with a check of what material the player is standing on

limber verge
#

!t locationtag.material

tall relicBOT
limber verge
#

/ex narrate <player.standing_on> returns a locationtag

/ex narrate <player.standing_on.material> will return the material at the given location

muted dagger
#

thanks

warm haven
#

you can do this way better

#

!e player steps on

tall relicBOT
# warm haven !e player steps on
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.

muted dagger
#

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