#I need help please :3

1 messages · Page 1 of 1 (latest)

humble sorrel
#

hii who can help plz?

    if item is beacon named "&3&lMap One":``` Once u click the beacon it tps u to x,yz

THEN when u click the bell
```on right click:
    if item is bell named "&6&lBegin Game":``` it tps u to another x,y,z

> > But is there a way to make it that once a player clicks the bell, no one else can click the beacon until certain event like player count in world "athena" reaches 0 players
real skiff
#

This script uses two variables, {beaconClicked} and {bellClicked}, to track whether the beacon or bell has been clicked. If the beacon is clicked, it teleports the player to one set of coordinates, and if the bell is clicked, it teleports the player to another set of coordinates.

Note the use of the not {beaconClicked} and not {bellClicked} conditions to ensure that the actions inside the blocks are only executed if the corresponding item hasn't been clicked before.

This way, once a player clicks the bell, the variable {bellClicked} is set to true, and no one else can click the beacon or bell until the server is restarted or the variables are reset. If you want to reset these variables under certain conditions, you can do so using Skript commands or events.

#

Hope that helps

real skiff
#

on right click:
if item is beacon named "&3&lMap One" and not {beacon_clicked::%player%}:
# Teleport the player to x, y, z
teleport player to x, y, z
else if item is bell named "&6&lBegin Game" and not {bell_clicked::%player%}:
# Teleport the player to another x, y, z
teleport player to another_x, another_y, another_z
# Set a variable to indicate that the bell has been clicked
set {bell_clicked::%player%} to true

#

Hope that helps at all

real skiff
#

Is there any change we can get reid of the name? for beacon

elfin cloak
#

if player's tool = Item named "Name":

humble sorrel
#

like swap it out with another block?

real skiff
#

on right click:
if item is beacon named "&3&lMap One":
teleport player to location -36, 147, 231

elfin cloak
humble sorrel
#

down to 2 erros

elfin cloak
#

Yes because if item is ItemHere isnt correct

#

Im convinced you cant see my messages

real skiff
#

nah ur invisible

#

Lol

humble sorrel
#

sorry, i just saw it

#

hey @real skiff, sorry, its not working, it didnt stop player from clicking beacon