Теги скорбордов - часть работы моей комманды дата-пакеров, я реализую недостатки их датапаков, через скрипт, например
использования /trigger spell1 при пкм с предметом, и тд.
У меня РП Политический сервер с Магией, и вообще дикость
Я придумываю фигню, и реализую, отдаю в эту душу, но чувствую себя максимально тупым в скрипте, вот и в первый раз обратился сюда
Вот вчера, ты мне кинул проверку эффектов, а у меня не работало, и я начал орать и ныть, а после оказалось то что я был в /vanish
Спасибо за помощь, я хочу научиться
{_lopped::*} - ::* я вообще не понимаю что это
самому loop-players и loop, хочу его как-то впихнуть сюда:
Code:
command /secondmedhelp:
cooldown: 110 seconds
cooldown message: Ждите &4%remaining time% &f!
trigger:
if player has permission "group.medical":
execute console command "/effect give %player% minecraft:regeneration 7 1 true"
execute player command "/effect give @p[limit=2,sort=nearest,distance=0..3] minecraft:instant_health 1 1 true"
execute player command "/me Лечит окружающих"
execute player command "/me Обработал раны спиртом"
execute console command "/effect give %player% minecraft:instant_health 1 1 true"
execute console command "/effect give %player% minecraft:nausea 2 5 true"
chance of 45%:
remove 1 water bottle with name "&6Спирт" from the player
remove 1 potion with name "&6Спирт" from the player
on rightclick with a water bottle:
if name of event-item is "&6Спирт":
execute player command "/secondmedhelp"
on rightclick with a potion:
if name of event-item is "&6Спирт":
execute player command "/secondmedhelp"
command /firstmedhelp:
cooldown: 32 seconds
cooldown message: Ждите &c%remaining time% &f!
trigger:
remove 1 paper named "Бинт" from the player
remove 1 paper named "Бинты" from the player
remove 1 paper named "БИНТ" from the player
remove 1 paper named "БИНТЫ" from the player
remove 1 paper named "БИНт" from the player
remove 1 paper named "БИНты" from the player
remove 1 paper named "БИнт" from the player
remove 1 paper named "БИнты" from the player
remove 1 paper named "бинт" from the player
remove 1 paper named "бинты" from the player
chance of 5%:
execute player command "/me Хорошо перевязал рану"
execute console command "/effect give %player% minecraft:regeneration 5 2 true"
chance of 70%:
execute player command "/me Перевязал рану"
execute console command "/effect give %player% minecraft:regeneration 5 1 true"
if player has permission "group.medical":
execute console command "/effect give %player% minecraft:regeneration 7 1 true"
execute player command "/effect give @p[limit=2,sort=nearest,distance=0..3] minecraft:regeneration 5 1 true"
execute player command "/me Лечит окружающих"
else:
execute player command "/me Неудачно перевязал рану"
if player has permission "group.medical":
execute console command "/effect give %player% minecraft:regeneration 4 1 true"
execute player command "/effect give @p[limit=2,sort=nearest,distance=0..3] minecraft:regeneration 4 1 true"
on rightclick with a paper:
if name of event-item is "Бинты":
execute player command "/firstmedhelp"
on rightclick with a paper:
if name of event-item is "Бинт":
execute player command "/firstmedhelp"
command /firstmedhelp2:
cooldown: 30 seconds
cooldown message: Ждите &c%remaining time% &f!
trigger:
remove 1 paper named "&7Гипс" from the player
chance of 80%:
execute player command "/me Наложил гипс"
execute console command "/effect give %player% minecraft:regeneration 12 0 true"
else:
execute player command "/me Неудалось"
on rightclick with a paper:
if name of event-item is "&7Гипс":
execute player command "/firstmedhelp2"
command /firstmedhelp3:
cooldown: 21 seconds
cooldown message: Ждите &c%remaining time% &f!
trigger:
remove 1 paper named "&8Шина" from the player
chance of 80%:
execute player command "/me Наложил шину"
execute console command "/effect give %player% minecraft:regeneration 24 0 true"
execute console command "/effect give %player% minecraft:slowness 12 0 true"
else:
execute player command "/me Неудалось"
on rightclick with a paper:
if name of event-item is "&8Шина":
execute player command "/firstmedhelp3"
command /secondmedhelp2:
cooldown: 110 seconds
cooldown message: Ждите &4%remaining time% &f!
trigger:
if player has permission "group.medical":
execute console command "/effect give %player% minecraft:regeneration 7 1 true"
execute player command "/effect give @p[limit=2,sort=nearest,distance=0..3] minecraft:instant_health 1 1 true"
execute player command "/me Лечит окружающих"
execute player command "/me Обработал раны этанолом"
execute console command "/effect give %player% minecraft:instant_health 1 1 true"
chance of 15%:
remove 1 water bottle with name "&cЭтанол" from the player
on rightclick with a water bottle:
if name of event-item is "&cЭтанол":
execute player command "/secondmedhelp2"
command /secondmedhelp3:
cooldown: 110 seconds
cooldown message: Ждите &4%remaining time% &f!
trigger:
if player has permission "group.medical":
execute console command "/effect give %player% minecraft:regeneration 7 1 true"
execute player command "/effect give @p[limit=2,sort=nearest,distance=0..3] minecraft:instant_health 1 1 true"
execute player command "/me Лечит окружающих"
execute player command "/me Обработал раны ацетилхолином"
execute console command "/effect give %player% minecraft:instant_health 1 1 true"
chance of 35%:
remove 1 water bottle with name "&2Ацетилхолин" from the player
on rightclick with a water bottle:
if name of event-item is "&2Ацетилхолин":
execute player command "/secondmedhelp3"
И да, хочу спросить
Как создать ивент?
Вот я хочу чтобы в период времени, была проверка шанса на событие
Code:
on consume:
if the player have the scoreboard tag "Z":
execute console command "/execute at @a[scores={z.1=37..}] run effect give @p minecraft:instant_damage"
execute console command "/scoreboard players add %player% z.1 1"
chance of 95%:
execute player command "/undig"
stop
command undig:
trigger:
execute player command "/me не усваивает пищу"
execute console command "/effect give %player% minecraft:hunger 2 99 true"
wait 100 ticks
execute console command "/effect give %player% minecraft:hunger 2 99 true"
wait 100 ticks
chance of 25%:
execute player command "/wommit"
stop
command wommit:
cooldown: 7 seconds
cooldown message: &4Вы рвёте...
trigger:
execute player command "/me вырвал пищу"
execute console command "/brew puke %player%"
wait 2 seconds
execute console command "/effect give %player% minecraft:hunger 4 99 true"
execute console command "/effect give %player% minecraft:nausea 4 99 true"
Смог придумать только такое