trigger:
if player is in region "spawn":
teleport player to {spawn}
else:
set {_cooldown} to 5
set {_loc} to player's location
while {_cooldown} > 0:
if distance between {_loc} and player > 1:
send action bar "&cʙᴄɢᴇɴѕ &8» &cʏᴏᴜ ᴍᴏᴠᴇᴅ!"
play sound "block.note_block.bass"
wait 3 tick
play sound "block.note_block.bass"
wait 3 tick
play sound "block.note_block.bass"
stop
wait 1 tick
send action bar "&cʙᴄɢᴇɴѕ &8» &cᴛᴇʟᴇᴘᴏʀᴛɪɴɢ ᴛᴏ ѕᴘᴀᴡɴ ɪɴ %{_cooldown}% ѕᴇᴄᴏɴᴅѕ!"
remove 1 from {_cooldown}
play sound "block.note_block.pling"
wait 1 second
teleport player to {spawn}
send action bar "&cʙᴄɢᴇɴѕ &8» &cᴛᴇʟᴇᴘᴏʀᴛᴇᴅ ᴛᴏ ѕᴘᴀᴡɴ!"
play sound "entity.experience_orb.pickup"
```
#What is wrong with this??
1 messages · Page 1 of 1 (latest)
Watch Minecraft and millions of other Minecraft videos captured using Medal.
this is all it does
moving my head dosent matter
(I don't know if this even matters): try if "%region at player%" is "spawn": in line 2
is {spawn} defined?
also just saying: for playing sounds and sending messages/actionbars type at player or to player, be specific as its better
i'll check the video in the bit
(I still didn't check it yes)
I checked the video and i kind of don't understand the problem
do what i told you to do above
then report back
Here's the Skript:
command /spawn:
trigger:
set {_loc} to player's location
send "&aStanding still for 5 seconds..."
set {_time} to 5
loop 5 times:
if distance between {_loc} and player's location > 0.1:
send "&cTeleport cancelled - you moved!"
stop
wait 1 second
subtract 1 from {_time}
send "&a%{_time}% seconds remaining..."
teleport player to spawn point of world("world")
send "&aTeleported to spawn!"
Requirements:
pro
how would i make it so if im in spawn it will auto tp there?
idk what u mean by that
like if im in region spawn it will tp instantly but if im not it wont
on enter of region “spawn”:
make player execute “spawn”
if im in spawn and execute ./spawn it will insta tp but if im not it does the cooldown
What are the coords for /spawn
yeah..
thats how a proper /spawn works
look at wildkits
its a variable