# SOUPS
on walk on Yellow Hardened Clay:
if event-block's location is location(-106, 66, 150, world "world"):
set {_waited} to difference between {soup.%player%.lastused} and now
if {_waited} is less than a minute:
message "&cYou have to wait %difference between a minute and {_waited}% before you can gain soups again."
play raw sound "RECORD_CAT" at player with pitch 1 volume 100
stop
player doesn't have space for a soup:
message "&cYou do not have enough space in your inventory to hold the soups!"
stop
give player 5 of soup to player
play raw sound "RECORD_CAT" at player with pitch 1 volume 100
send "&aYou got 5 soups!" to player
stop
set {soup.%player%.lastused} to now
# TELEPORTATIONS
on walk on Red Hardened Clay:
if event-block's location is location(-106, 66, 149 world "world"):
set {_waited} to difference between {teleport.%player%.lastused} and now
if {_waited} is less than a minute:
message "&cYou have to wait %difference between a minute and {_waited}% before you can gain soups again."
play raw sound "RECORD_CAT" at player with pitch 1 volume 100
stop
teleport the player to location(15, 4, 50, world "the world")
play raw sound "PORTAL_TRIGGER" at player with pitch 1 volume 100
send "&aYou have been teleported" to player
stop
set {teleport.%player%.lastused} to now
on walk on Yellow Hardened Clay:
if event-block's location is location(-106, 66, 150, world "world"):
set {_waited} to difference between {soup.%player%.lastused} and now
if {_waited} is less than a minute:
message "&cYou have to wait %difference between a minute and {_waited}% before you can gain soups again."
play raw sound "RECORD_CAT" at player with pitch 1 volume 100
stop
player doesn't have space for a soup:
message "&cYou do not have enough space in your inventory to hold the soups!"
stop
give player 5 of soup to player
play raw sound "RECORD_CAT" at player with pitch 1 volume 100
send "&aYou got 5 soups!" to player
stop
set {soup.%player%.lastused} to now
# TELEPORTATIONS
on walk on Red Hardened Clay:
if event-block's location is location(-106, 66, 149 world "world"):
set {_waited} to difference between {teleport.%player%.lastused} and now
if {_waited} is less than a minute:
message "&cYou have to wait %difference between a minute and {_waited}% before you can gain soups again."
play raw sound "RECORD_CAT" at player with pitch 1 volume 100
stop
teleport the player to location(15, 4, 50, world "the world")
play raw sound "PORTAL_TRIGGER" at player with pitch 1 volume 100
send "&aYou have been teleported" to player
stop
set {teleport.%player%.lastused} to now
