Solved Block Teleporter

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Jeremy Mathew

Member
Jul 2, 2022
1
0
1
23

on place:
if player's tool is a calcite named "teleporter1":
message "tele1 placed"
set {_tele} to event-block
add {_tele} to {teleportersTest1::*}

on place:
if player's tool is a calcite named "teleporter2":
message "tele2 placed"
set {_tele} to event-block
add {_tele} to {teleportersTest2::*}

on break:
if event-block is calcite:
message "tele broken"
remove event-block from {teleportersTest1::*}
remove event-block from {teleportersTest2::*}

on step on calcite:
message "p"
if event-block is in {teleportersTest1::*}:
message "e"

I'm trying to make a calcite block detect if it's in a variable when you step on it, when I reload the script, it has no errors but when I step on calcite that should be in the variable it doesn't say e to the player. I'm probably dumb but could someone help?
 
Status
Not open for further replies.