#custom block specific player activate
22 messages · Page 1 of 1 (latest)
??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.
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
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
})
I haven't tried anything I'm doing research befor I do
this is an example using persistantData
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
afaik no
Afaik?
you'll have to give it to them using some sort of script
as far as I know
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!
:D
Thanks for the help
Anything that you want
i asked in another but do you know if you can edit player name tag?