Конфигурация Скрипт RTP [2026-01-06]

Скрипт RTP
Краткое описание:
Система RTP, сделанная с помощью Skript
10
184
Для версий
  1. 1.21.✘
RTP Preview


Скрипт на команду /rtp

Требования:
Skript 2.12.2

Установка:
1. Скачиваете skрипт с этой страницы
2. Перекидываете в папку со скриптами
3. Прописываете /sk reload all
options:
# ᴏᴄʜᴏʙʜыᴇ ʜᴀᴄтᴘᴏйᴋи
rtp-world: world
rtp-radius: 5000
rtp-center-x: 0
rtp-center-z: 0
rtp-cooldown: 60
rtp-max-attempts: 50

# ʜᴀᴄтᴘᴏйᴋи ʙыᴄᴏты
rtp-min-y: 60
rtp-max-y: 320

# пᴇᴘмишᴇʜы
rtp-permission: rtp.use
rtp-bypass-cooldown: rtp.bypass.cooldown

# ᴄᴏᴏбщᴇʜия
msg-prefix: &7[§x§6§C§D§D§1§Aʀᴛᴘ&7]
msg-no-permission: &fу ʙᴀᴄ §x§E§2§1§B§1§Bʜᴇт &fпᴘᴀʙ для иᴄпᴏльзᴏʙᴀʜия этᴏй ᴋᴏмᴀʜды!
msg-teleporting: &fтᴇлᴇпᴏᴘтᴀция...
msg-success: &fʙы были тᴇлᴇпᴏᴘтиᴘᴏʙᴀʜы!
msg-failed: §x§E§2§1§B§1§Bʜᴇ удᴀлᴏᴄь &fʜᴀйти бᴇзᴏпᴀᴄʜᴏᴇ мᴇᴄтᴏ. пᴏпᴘᴏбуйтᴇ ᴇщᴇ ᴘᴀз
msg-cooldown: &fпᴏдᴏждитᴇ ᴇщᴇ §x§6§C§D§D§1§A%difference between {rtp.cooldown::%uuid of player%} and now% ᴄᴇᴋeʜд.
msg-searching: &fидᴇт пᴏиᴄᴋ

# зᴀпᴘᴇщᴇʜʜыᴇ блᴏᴋи
unsafe-blocks: lava, water, powder snow, magma block, fire, soul fire, campfire, soul campfire, cactus, sweet berry bush, wither rose
variables:
{rtp.cooldown::*} = 0
on load:
set {rtp.unsafe::*} to "{@unsafe-blocks}" split at ", "
command /rtp:
trigger:
set {_p} to "{@msg-prefix}"
if player doesn't have permission "{@rtp-permission}":
send "%{_p}% {@msg-no-permission}" to player
stop

if player doesn't have permission "{@rtp-bypass-cooldown}":
if {rtp.cooldown::%uuid of player%} is set:
if {rtp.cooldown::%uuid of player%} > now:
send "%{_p}% {@msg-cooldown}" to player
stop

set {_world} to world named "{@rtp-world}"
if {_world} is not set:
send "%{_p}% &cМир {@rtp-world} не найден!" to player
stop

if world of player is {_world}:
set {_centerX} to round(x-coordinate of player)
set {_centerZ} to round(z-coordinate of player)
else:
set {_centerX} to {@rtp-center-x}
set {_centerZ} to {@rtp-center-z}

set {_attempt} to 0
set {_found} to false
set {_animation} to 0

while {_attempt} < {@rtp-max-attempts}:
wait 1 ticks
set {_dots} to ""
if {_animation} is 0:
set {_dots} to "."
else if {_animation} is 1:
set {_dots} to ".."
else:
set {_dots} to "..."
send action bar "{@msg-searching}%{_dots}%" to player

add 1 to {_animation}
if {_animation} > 2:
set {_animation} to 0

set {_randomX} to random integer between ({_centerX} - {@rtp-radius}) and ({_centerX} + {@rtp-radius})
set {_randomZ} to random integer between ({_centerZ} - {@rtp-radius}) and ({_centerZ} + {@rtp-radius})

set {_loc} to location({_randomX}, {@rtp-min-y}, {_randomZ}, {_world})
set {_highestBlock} to highest block at {_loc}

if y-coordinate of {_highestBlock} > {@rtp-max-y}:
add 1 to {_attempt}
continue

set {_blockBelow} to {_highestBlock}
set {_blockFeet} to block above {_highestBlock}
set {_blockHead} to block 2 above {_highestBlock}

set {_safe} to true

loop {rtp.unsafe::*}:
if "%type of {_blockBelow}%" contains loop-value:
set {_safe} to false
exit loop

if {_safe} is true:
if {_blockFeet} is not air:
set {_safe} to false

if {_safe} is true:
if {_blockHead} is not air:
set {_safe} to false

if {_safe} is true:
set {_found} to true
set {_tpLoc} to location above {_highestBlock}

set yaw of {_tpLoc} to random integer between 0 and 360
set pitch of {_tpLoc} to 0

set {_chunk} to chunk at {_tpLoc}
wait 1 tick

set fall distance of player to 0
send "%{_p}% {@msg-teleporting}" to player
teleport player to {_tpLoc}
send "%{_p}% {@msg-success}" to player

if player doesn't have permission "{@rtp-bypass-cooldown}":
set {rtp.cooldown::%uuid of player%} to {@rtp-cooldown} seconds from now

exit loop

add 1 to {_attempt}

if {_found} is false:
send "%{_p}% {@msg-failed}" to player
on quit:
if {rtp.cooldown::%uuid of player%} < now:
delete {rtp.cooldown::%uuid of player%}

Автор

He1ly03

Еще ресурсы от He1ly03

Карта BenchMark
Карта для проверки производительности пк в майнкрафте
LiseryPrivate
LiseryPrivate
Плагин на систему приватов чанков
LiseryMenu
LiseryMenu
Плагин для создания кастомных GUI
Спавн в стиле SteamPunk
Спавн в стиле SteamPunk
Качественный спавн для сервера с режимом Гриф/Анархия/SMP/Выживание.
Таб & Скорборд - SunLight/TAB конфигурация
Прикольный конфиг плагина SunLight/TAB для таба и скорборда
ВерхНиз