NowTest: type: assignment interact scripts: - test test: type: interact steps: "Need a test?*": click trigger: script: - inventory open d:in@generic[size=36;title=ПРИЗ] Items: type: world events: on player clicks in inventory with m@sponge: - narrate 'Ты кликнул' DirtWorld: type: world events: on player breaks Grass: - ^narrate '!!! Эй! Запрещено ломать Траву !!!' - ^determine CANCELLED Basic gm: type: assignment interact scripts: - gm1 bro! gm1 bro!: type: interact steps: "Gamemode1*": click trigger: script: - if != 1 { - execute as_server "gamemode 1 " - chat 'Поздравляю! Вам обновили игровой режим на "Творческий"!' - cooldown 10s } else { - chat 'У вас уже есть "Творческий" режим игры!' } Gamemode0: type: assignment interact scripts: - gm0! gm0!: type: interact steps: "Gamemode0?*": click trigger: script: - if != 0 { - execute as_server "gamemode 0 " - chat 'Поздравляю!Вам обновили игровой режим на "Выживание"!' - cooldown 10s } else { - chat 'У вас уже режим игры - "Выживание"' } Give operator: type: assignment interact scripts: - giveop! giveop!: type: interact steps: "Operator*": click trigger: script: - if '' == 'False' { - execute as_server "op " - chat 'Теперь Вы - оператор!' - cooldown 10s } else { - chat 'Вы уже оператор.' } Deoperator: type: assignment interact scripts: - deop! deop!: type: interact steps: "Deop*": click trigger: script: - if '' == 'True' { - execute as_server "deop " - chat 'Теперь Вы - не оператор этого сервера!' - cooldown 10s } else { - chat 'Вы не оператор данного сервера.' } Econs: type: assignment interact scripts: - econ! econ!: type: interact steps: "Need a econ?*": click trigger: script: - if '' <= '' { - execute as_server "gamemode 1 " - chat 'Готово!<&nl><&nl><&nl><&nl><&nl>У вас теперь дахира эконов:)' - cooldown 10s } ClearWeather: type: assignment interact scripts: - Weather! Weather!: type: interact steps: "Need a clear?*": click trigger: script: - if '' <= '' { - execute as_server "weather clear" - chat '---<&nl>======================================= <&nl><&nl><&nl><&nl><&nl><&nl>Вы поменяли погоду на чистую!' - cooldown 5m } Book: type: assignment interact scripts: - Book! Book!: type: interact steps: "Need a book?*": click trigger: script: - if '' <= '' { - execute as_server "give book" - narrate '-<&nl>======================================= <&nl><&nl><&nl><&nl><&nl><&nl>Вы получили пустую книгу!' - cooldown 10s } sharparrow: type: assignment item scripts: - sharp_arrow sharp_arrow: type: item debug: false material: sponge display name: Шрапнель lore: - <&c>Шрапнель - <&c>страшная вещь! recipe: - i@arrow|i@arrow|i@arrow - i@air|i@air|i@air - i@air|i@air|i@air Teleport: #имя скрипта type: assignment #говорим что это задание debug: false #выключаем вывод в консоль interact scripts: #скрипт, с которого начинаем - telep telep: #название type: interact #говорим что это задание steps: #начинаем создавать шаги "question*": #первый шаг, * на конце нужна, если в скрипте есть несколько вариантов click trigger: #срабатываем только когда кликнули по NPC script: #пишем тело скрипта - random 3 #говорим, что будем использовать любой из 2 вариантов сообщений чата ниже - chat 'Вы хотите, чтобы я Вас перенес на спавн?' - chat 'Хотите телепортироваться на спавна?' - chat 'Желаете переместиться на спавн?' chat trigger: #назначаем триггер чата, он отслеживает сообщения или слова 'Yes': #Имя триггера trigger: '/Да/!' #Если в чат написали да(без разницы как: да, Да, дА, ДА) script: #что делаем, если увидели да - chat 'Хорошо! Сейчас только прочитаю заклинание.' #выводим сообщение от npc в чат - narrate ' что-то бормочет себе под нос...' #выводим простое сообщение в чат с именем npc - playeffect cloud qty:20 #задаем эффект на месте игрока с кол-вом 20 - playeffect cloud qty:30 #задаем эффект на месте игрока с кол-вом 30 - playeffect cloud qty:40 #задаем эффект на месте игрока с кол-вом 40 - playeffect flame qty:50 #задаем эффект на месте игрока с кол-вом 50 - ^narrate 'Телепортация...' - ^playeffect cloud qty:50 #задаем эффект на месте игрока с кол-вом 50 - ^playeffect cloud qty:50 #задаем эффект на месте игрока с кол-вом 50 - ^playeffect cloud qty:50 #задаем эффект на месте игрока с кол-вом 50 - playeffect cloud qty:50 #задаем эффект на месте игрока с кол-вом 50 - ^execute as_server 'tp 962 4 -1127' #выполняем от имени консоль команду - ^playeffect cloud qty:60 #задаем эффект на месте игрока с кол-вом 50 - chat 'Вы были телепортированы.' #выводим сообщение в чат от имени npc - zap 'step:succes' #переходим на шаг с именем succes 'succes': #шаг с именем succes click trigger: #ждем щелчка по npc script: #начинаем скрипт - zap 'step:question' #переходим на шаг question, то есть в начало. Это будет цикл, чтобы телепортом можно было пользоваться всегда. WithPlayer: type: assignment interact scripts: - with with: type: interact steps: "question*": click trigger: script: - random 2 - chat 'Ты хочешь чтобы я тебя перенес на спавн?' - chat 'Хочешь телепортироваться на спавна?' chat trigger: 'Yes': trigger: '/Да/!' script: - chat 'Поздравляю' NoCrack: type: assignment world scripts: - nocrashblock nocrashblock: type: world events: on player breaks sand: - ^narrate 'Запрещено рушить ' - determine dirt Hurt: type: assignment interact scripts: - hurtin hurtin: type: interact steps: "Need a hurt?*": click trigger: script: - animate animation:hurt Burn: type: assignment interact scripts: - burnin burnin: type: interact steps: "Need a burn?*": click trigger: script: - burn duration:10s InvisibleOn: type: assignment interact scripts: - OnInvisible OnInvisible: type: interact steps: "Need a OnInvisible?*": click trigger: script: - invisible true VisibleOn: type: assignment interact scripts: - OnVisible OnVisible: type: interact steps: "Need a OnVisible?*": click trigger: script: - invisible false ShowInv: type: assignment interact scripts: - Inv Inv: type: interact steps: "Need a chest?*": click trigger: script: - inventory open d:in@generic[size=36;title=BestInventory;contents=li@i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane|i@lapis_block|i@sponge|i@lapis_block|i@stained_glass_pane|i@stained_glass_pane|i@stained_glass_pane] #Scripts GUI #Minigames MiniGames: type: assignment interact scripts: - MiniInv #Inventory Items #Quake QuakeMaterial: type: assignment item scripts: - QuakeItem QuakeItem: type: item material: glass display name: Quake lore: - <&c>Интересная игра по мотивам - <&c>старинной игры Quake, теперь - <&c>в Minecraft. Тебе предстоит - <&c>уничтожать своих врагов из - <&c>оружия, которое убивает с - <&c>одного выстрела. Попробуй - <&c>выжить в таких нелёгких - <&c>условиях. - <&c> - <&c>➜ Подключиться - <&c>игроков: 6 • #Annihilation AnniMaterial: type: assignment item scripts: - AnniItem AnniItem: type: item material: cactus display name: Annihilation lore: - <&c>Игроки делятся на 4 команды. - <&c>У каждой команды своя база и - <&c>нексус, который надо защищать. - <&c>Задача команд-соперников - - <&c>сломать вражеский нексус, что - <&c>приводит к проигрышу команды. - <&c>Но будьте аккуратны! Пока вы - <&c>ломаете чужой нексус, ваш - <&c>находится под угрозой. - <&c> - <&c>• 2 сервера • #VampireZ VampireZMaterial: type: assignment item scripts: - VampireZItem VampireZItem: type: item material: cobblestone display name: VampireZ lore: - <&c>В игре присутствуют люди и - <&c>вампиры. Задача людей - - <&c>скрыться от вампиров. Если - <&c>вампир кусает человека, то он - <&c>моментально превращается в - <&c>зелёного мертвеца. Кто же - <&c>победит в итоге? - <&c> - <&c>➜ Подключиться - <&c>игроков: 6 • #SkyWars SkyMaterial: type: assignment item scripts: - SkyItem SkyItem: type: item material: sandstone display name: SkyWars lore: - <&c>Ваша задача - выжить на - <&c>одиноком острове любой - <&c>ценой. Атакуйте врагов, - <&c>стройте ловушки, используйте - <&c>свою хитрость и удачу. - <&c> - <&c>➜ Подключиться - <&c>игроков: 10 • #Hide`n`Seek HnSMaterial: type: assignment item scripts: - HnSItem HnSItem: type: item material: chest display name: Hide'n'Seek lore: - <&c>Игроки делятся на две команды<&co> - <&c>Hide-Мышки и Seek-Коты. Задача - <&c>котов - найти за 5 минут всех - <&c>мышек. А мышки должны прятаться, - <&c>маскируясь под различные блоки. - <&c>Доступно несколько интересных - <&c>карт. - <&c> - <&c>➜ Подключиться - <&c>игроков: 15 • #TNT run TNTMaterial: type: assignment item scripts: - TNTItem TNTItem: type: item material: tnt display name: TNTRun lore: - <&c>Беги и не останавливайся! - <&c>Промедление на одну секунду - <&c>будет стоить тебе жизни. - <&c>Пол сделан из ТНТ и взрывается, - <&c>если наступить. Побеждает самый - <&c>шустрый игрок. - <&c> - <&c>➜ Подключиться - <&c>игроков: 2 • #War WarMaterial: type: assignment item scripts: - WarItem WarItem: type: item material: bow display name: War lore: - <&c>Игроки делятся на 2 команды<&co> - <&c>Blue и Red. Цель - захватить - <&c>флаг противника и защитить - <&c>свой. Доступно несколько - <&c>интересных карт для игры с - <&c>друзьями. - <&c> - <&c>➜ Подключиться - <&c>игроков: 24 • #PaintBall PBMaterial: type: assignment item scripts: - PBItem PBItem: type: item material: snow display name: PaintBall lore: - <&c>Стреляйте из пистолетов с - <&c>краской, бросайте гранаты, - <&c>уничтожайте врагов, качайте - <&c>свой ранг и покупайте новое - <&c>мощное оружие. Динамическая - <&c>и интересная мини-игра. - <&c> - <&c>➜ Подключиться - <&c>игроков: 5 • #BedWars BWMaterial: type: assignment item scripts: - BWItem BWItem: type: item material: bed display name: BedWars lore: - <&c>Игроки делятся на 4 команды<&co> - <&c>У каждой команды своя кровать. - <&c>Задача - сломать кровать команды - <&c>противника и умудриться выжить - <&c>самому. Доступен магазин для - <&c>покупки вещей за ресурсы. Этот - <&c>сервер не заставит вас скучать! - <&c> - <&c>➜ Подключиться - <&c>игроков: 83 • #Spleef SpleefMaterial: type: assignment item scripts: - SpleefItem SpleefItem: type: item material: grass display name: Spleef lore: - <&c>Стреляйте из лопаты снежками - <&c>в блоки, на которых стоят - <&c>соперники. Побеждает тот, кто - <&c>останется наверху. Ваша - <&c>задача - как можно дольше - <&c>продержаться и выиграть. - <&c> - <&c>➜ Подключиться - <&c>игроков: 8 • #SPAWN SpawnMaterial: type: assignment item scripts: - SpawnItem SpawnItem: type: item material: beacon display name: Лобби lore: - <&c>Вернуться в Лобби - <&c> - <&c>➜ Подключитьсяw - <&c>игроков: 8 • MiniGamesWorldSpawn: #Quake type: world debug: false events: on player clicks m@beacon in in@MINIGAMESINV with m@air: - ^execute as_server "say Улетаем на спавн" - ^inventory close in@MINIGAMESINV - ^execute as_server "tp 962 4 -1127" - ^playeffect cloud qty:60 - ^determine CANCELLED #BeginScripts MiniInv: type: interact steps: "Need a games*": click trigger: script: - run MiniGamesTask MiniGamesWorldQuake: #Quake type: world debug: false events: on player clicks m@glass in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в Quake" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldAnni: #Annihilation type: world debug: false events: on player clicks m@cactus in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в Annihilation" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldSkyWars: #SkyWars type: world debug: false events: on player clicks m@sandstone in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в SkyWars" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldHnS: #Hide`n`Seek type: world debug: false events: on player clicks m@chest in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в Hide`n`Seek" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldTntRun: #TNT-Run type: world debug: false events: on player clicks m@tnt in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в TNT Run" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldWar: #War type: world debug: false events: on player clicks m@bow in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в War" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldPB: #PaintBall type: world debug: false events: on player clicks m@snow in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в PaintBall" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldVampireZ: #VampireZ type: world debug: false events: on player clicks m@cobblestone in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в VampireZ" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldBW: #BedWars type: world debug: false events: on player clicks m@bed in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в BedWars" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldSpleef: #Spleef type: world debug: false events: on player clicks m@grass in in@MINIGAMESINV with m@air: - ^execute as_server "say Играем в Spleef" - ^inventory close in@MINIGAMESINV - ^determine CANCELLED MiniGamesWorldItem: #Просто клик type: world debug: false events: on player clicks in in@MINIGAMESINV with m@air: - ^determine CANCELLED MiniGamesTask: type: task debug: false script: - ^inventory open d:in@MINIGAMESINV MINIGAMESINV: type: inventory debug: false inventory: CHEST title: 'Миниигры сервера' size: 54 slots: - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" #КВЕСТ ПОПЫТКА QuestYes: type: assignment item scripts: - ItemQuestYes ItemQuestYes: type: item material: emerald_block display name: Согласен! lore: - <&c>Подтвердить квест! QuestNo: type: assignment item scripts: - ItemQuestNo ItemQuestNo: type: item material: redstone_block display name: Не согласен! lore: - <&c>Отказаться от квеста! QuestCancel: type: assignment item scripts: - ItemQuestCancel ItemQuestCancel: type: item material: gray_wool display name: Отменить no_id: WQ1Cancel: type: world debug: false events: on player clicks m@gray_wool in in@QUEST1INV: - ^inventory close d:in@QUEST1INV - ^determine CANCELLED WQ1Yes: type: world debug: false events: on player clicks m@emerald_block in in@QUEST1INV: - ^announce "Ты теперь принял участие в квесте!" - ^run Q1Task - ^inventory close d:in@QUEST1INV - ^determine CANCELLED WQ1No: type: world debug: false events: on player clicks m@redstone_block in in@QUEST1INV: - announce "Как-нибудь в другой раз приходи." - ^inventory close in@QUEST1INV - ^determine CANCELLED WQ1Air: type: world debug: false events: on player clicks in in@QUEST1INV with m@air: - determine CANCELLED #Инвентарь Квест1 QUEST1INV: type: inventory debug: false inventory: CHEST title: Квест size: 54 slots: - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" - "[] []" Quests1: type: assignment interact scripts: - RunQuest1 RunQuest1: type: interact debug: false steps: InventoryQ1: click trigger: script: - if ! { - chat "Привет, !" - wait 2 - chat "Предлагаю тебе пройти квест и получить награду." - wait 2 - ^chat "Ты готов пройти его?" - ^narrate "Тебе нужно выбрать Да или Нет." - wait 2 - ^flag player WQ1Do - ^inventory open d:in@QUEST1INV } else { - chat "Вы уже участвовали в квесте сегодня. Приходи завтра!" } Q1Task: type: task debug: false script: - narrate "Тебе предстоит найти нашего царя и выслушать его историю." - wait 2 - ^narrate "Удачных поисков!" - ^zap script:RunQuests2 step:start #Квест2 Quest2: type: assignment interact scripts: - 10 RunQuests2 RunQuests2: type: interact steps: start*: click trigger: script: - if { - chat "Приветствую!" - wait 1 - chat "Я хотел тебе рассказать про то, как правильно ходить в туалет..." - wait 3 - chat "Но мне придётся отложить это дело." - wait 2 - chat "Тебе нужно будет найти и убить 1 зомби!" - wait 3 - chat "Как будешь готов - приходи" - ^zap step:repeat - ^flag server WMembers:->: } else { - chat "Возьмите задание у Quest1." } repeat*: click trigger: script: - if { - random { - chat "Снова здравствуй, " - chat "Приветствую тебя снова" - chat "Рад, что ты жив :)" } - wait 4 - chat "Ты готов к выполнению?" - wait 1 } else { - chat "Вы не взяли задание" } chat trigger: 1: trigger: /Да/, конечно! script: - random { - chat "Прекрасно слышать!" - chat "Прекрасно!" - chat "Отлично!" } - wait 2 - chat "Тебе требуется убить 1 зомби" - ^flag player WQCount:0 - ^listen kill type:entity target:zombie qty:1 script:WQCheck - ^flag player WQCont - wait 1 - chat "Возвращайся тогда, когда выполнишь моё задание." - ^zap step: waiting 2: trigger: /Нет/, не хочу. script: - chat "Возращайся позже" waiting*: click trigger: script: - chat "Ты убил из 1 зомби." - wait 1 - chat "Возвращайся после выполнения задания." surprise*: click trigger: script: - if && " - wait 2 - chat "Вот награды за твою помощь мне!" - wait 1 - ^narrate "Вы получили 100 монет от !" - ^execute as_server "say Типо /give econ" - ^flag player WQCooldown duration:10s - ^zap step:cooldown - ^flag player WQ1Do:! - ^flag player WQDone - ^flag player WQCont:! } else { - ^random { - chat "Вы не взяли задание." - chat "У вас не взято задание." } - ^chat "Возьмите его у Quest1" } cooldown*: click trigger: script: - chat "Ты уже выполнил это задание сегодня!" - wait 2 - chat "Возвращайся завтра и проверяй снова!" WQCheck: type: task script: - flag player WQCount:++ - narrate "**Вы убили из 1 зомби.**" - if >= 1 run WQReward else run WQContinue WQContinue: type: task script: - ^listen kill type: entity target:zombie qty:1 script:WQCheck WQReward: type: task script: - narrate "Возвращайся к Квесту для получения награды." - zap script:RunQuests2 step:surprise WQWorld: type: world debug: false events: on time changes in w@McOnly: - ^if == "null" queue clear - ^foreach { - ^if !<%value%.as_player.flag[WQCooldown]> && != "return" && <%value%.flag[WQDone]> { - ^zap script:RunQuests2 step:repeat player:%value% - ^flag %value% WQDone:! - ^if <%value%.as_player.is_online> { - ^narrate player:%value% "Бот Квест нуждается в твоей помощи!" - ^narrate player:%value% "Возвращайся за заданием." } } }