#custom block specific player activate

22 messages · Page 1 of 1 (latest)

red saffronBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

flat raven
#

??helpyou

tawdry flameBOT
# flat raven ??helpyou

╰( ͡° ͜ʖ ͡° )つ──☆:・゚˜”°•.˜”°• Many Help •°”˜.•°”˜*
Please provide a description of your issue with as much detail as possible. If you have an issue with a script provide the script. Explain what you can see happening and what you expect to happen. Be specific!

Tell us what is happening, we already know it "doesn't work".
Avoid using words like "it", tell us exactly what "it" is.
Don't assume anyone knows what you are talking about, be specific.

Provide screenshots or video if possible.
Provide the log.

glass cape
#

I mean like to teleport when right click a statue (custom block)

But on if they have a nbt tied to them or a way to have a tag on a player like you can with giving them a stage for first time kit

#

Or just to give a player a tag/nbt or to do an if , if they have it

flat raven
#
onEvent('block.right_click', e => {
    if(e.block.id != 'statue:block_id' || !e.player.persistantData.canTeleport) return
    e.server.runCommand(`tp ${e.player.name}`)
    e.player.persistantData.canTeleport = false
})
glass cape
#

I haven't tried anything I'm doing research befor I do

flat raven
#

this is an example using persistantData

glass cape
#

Awww

#

So I can set teams and set the death spawn point with persistent data

Is there a way to make a command to set them with the persistentData

flat raven
#

afaik no

glass cape
#

Afaik?

flat raven
#

you'll have to give it to them using some sort of script

flat raven
glass cape
#

Gotcha wasn't sure if I made a command that requires a name and have the action set the persistentdata of that player to true

#

I'll give it a try real quick thank you!

flat raven
#

:D

glass cape
#

Thanks for the help

glass cape
#

Or only true and false

flat raven
#

Anything that you want

glass cape