options: author: LestarDev version: 1.0 link: https://google.com #ustawienia prefix_on: true #true/false prefix_dev: &b[DEVELOPER] &7 prefix_gracz: &7 #potwory moby: true #true/false zombie: true smok: true #kregi zaklecia: true #true/false wind: true fireball: true firewind: true oczyszczenie: true on script load: execute console command "/tellraw @a {""text"":""&7Skript by &b&l{@author}&7, wersja &b{@version}"",""clickEvent"":{""action"":""open_url"",""value"":""{@link}""}}" loop all players: if loop-player has permission "lestar.dev": send "&8]&7----------&bUstawienia&7----------&8[" to loop-player send " " to loop-player if {@prefix_on} is true: send "&7prefix_on&7: &a{@prefix_on}" to loop-player send "&7prefix_dev&7: {@prefix_dev}nick" to loop-player send "&7prefix_gracz&7: {@prefix_gracz}nick" to loop-player else: send "&7prefix_on&7: &c{@prefix_on}" to loop-player if {@moby} is true: send "" to loop-player send "&8]&7---------------------&8[" to loop-player send "" to loop-player send "&7moby&7: &a{@moby}" to loop-player else: send "&7moby&7: &c{@moby}" to loop-player if {@zaklecia} is true: send "" to loop-player send "&8]&7---------------------&8[" to loop-player send "" to loop-player send "&7zaklecia&7: &a{@zaklecia}" to loop-player send "&7fireball&7: &8{@fireball}" to loop-player send "&7wind&7: &8{@wind}" to loop-player send "&7firewind&7: &8{@firewind}" to loop-player send "&7oczyszczenie&7: &8{@oczyszczenie}" to loop-player else: send "&7zaklecia&7: &c{@zaklecia}" to loop-player on chat: if {@prefix_on} is true: cancel event if player has permission "lestar.dev": send "{@prefix_dev}%player%&7: &b%message%" else: send "{@prefix_gracz}%player%&7: %message%" #zombie command /zombie: permission: lestar.mob.zombie permission message: &cError trigger: if {@zombie} is true: spawn 1 zombie at player's position set name of last spawned zombie to "&7Elo" set chestplate of last spawned zombie to iron chestplate set tool of last spawned zombie to iron sword of sharpness 1 named "&cError" execute console command "data merge entity @e[type=zombie,limit=1] {CustomNameVisible:1b}" command /smok: permission: lestar.mob.smok permission message: &cError trigger: if {@smok} is true: spawn 1 ender dragon at player's position execute console command "data merge entity @e[type=ender_dragon,limit=1] {DragonPhase:0}" set name of last spawned ender dragon to "&5Enderdragon" set {x} to player's x-coordinate set {y} to player's y-coordinate set {z} to player's z-coordinate set {x_smoka} to player's x-coordinate set {y_somka} to player's y-coordinate set {z_smoka} to player's z-coordinate set {x_smoka} to {x_smoka} + 30 set {y_smoka} to {y} set {z_smoka} to {z_smoka} - 30 set {smok} to last spawned ender dragon teleport {smok} to location at {x_smoka}, {y_smoka}, {z_smoka} in world "world" send "%{x}% %{y}% %{z}% -> playera" send "%{x_smoka}% %{y_smoka}% %{z_smoka}% -> smoka" loop 2 times: loop 30 times: #gora set {z_smoka} to {z_smoka} + 1 teleport {smok} to location at {x_smoka}, {y_smoka}, {z_smoka} in world "world" wait 1 tick loop 29 times: #lewo set {x_smoka} to {x_smoka} - 1 teleport {smok} to location at {x_smoka}, {y_smoka}, {z_smoka} in world "world" wait 1 tick loop 29 times: #dol set {z_smoka} to {z_smoka} - 1 teleport {smok} to location at {x_smoka}, {y_smoka}, {z_smoka} in world "world" wait 1 tick loop 28 times: #prawo set {x_smoka} to {x_smoka} + 1 teleport {smok} to location at {x_smoka}, {y_smoka}, {z_smoka} in world "world" wait 1 tick wait 5 seconds execute console command "kill @e[type=ender_dragon,limit=1]" command /ice: trigger: spawn 1 armor stand at player's position execute console command "data merge entity @e[type=armor_stand,limit=1] {Invisible:1b}" execute console command "data merge entity @e[type=armor_stand,limit=1] {Tags:['ice']}" loop 10 times: execute console command "execute at @e[tag=ice] run function img:smok_obramowka_1" execute console command "/execute as @e[type=minecraft:armor_stand,tag=ice] at @s run tp @s ~ ~ ~ ~20 ~" execute player command "/execute as @e[distance=..5,type=!minecraft:player] at @p run effect give @s minecraft:slowness 5 9 true" wait 7 tick execute console command "kill @e[type=armor_stand,tag=ice]" command /fireball: trigger: spawn 1 armor stand at player's position execute console command "data merge entity @e[type=armor_stand,limit=1] {Invisible:1b}" execute console command "data merge entity @e[type=armor_stand,limit=1] {Tags:['fireball']}" loop 3 times: execute console command "execute at @e[tag=fireball] run function img:ogien" execute console command "/execute as @e[type=minecraft:armor_stand,tag=fireball] at @s run tp @s ~ ~0.2 ~ ~ ~" wait 2 tick #spawn fireball at location at player's x-coordinate, player's y-coordinate+4, player's z-coordinate in world "world" #push last spawned entity in direction of player with force 0.7 shoot a fireball from player at speed 1 wait 5 tick execute console command "kill @e[type=armor_stand,tag=fireball]" command /firewind: trigger: spawn 1 armor stand at player's position execute console command "data merge entity @e[type=armor_stand,limit=1] {Invisible:1b}" execute console command "data merge entity @e[type=armor_stand,limit=1] {Tags:['firewind']}" loop 10 times: execute console command "execute at @e[tag=firewind] run function img:firewind" execute console command "/execute as @e[type=minecraft:armor_stand,tag=firewind] at @s run tp @s ~ ~ ~ ~20 0" execute console command "/execute as @p at @s run particle minecraft:flame ~ ~1.5 ~ 2 0 2 0.15 5" wait 5 tick execute console command "kill @e[type=armor_stand,tag=firewind]" execute console command "/execute as @p at @s run particle minecraft:flame ~ ~1.5 ~ 2 0 2 0.5 100" execute console command "effect give @p minecraft:fire_resistance 480 0" command /oczyszczenie: trigger: wait 1 tick spawn 1 armor stand at location at player's x-coordinate, player's y-coordinate+4, player's z-coordinate in world "world" execute console command "data merge entity @e[type=armor_stand,limit=1] {Invisible:1b}" execute console command "data merge entity @e[type=armor_stand,limit=1] {NoGravity:1b}" execute console command "data merge entity @e[type=armor_stand,limit=1] {Tags:['oczyszczenie']}" loop 7 times: execute console command "execute at @e[tag=oczyszczenie] run function img:oczyszczenie" execute console command "/execute as @p at @s run tp @e[type=minecraft:armor_stand,tag=oczyszczenie] ~ ~4 ~ ~20 0" execute console command "/execute as @p at @s run particle minecraft:end_rod ~ ~ ~ 0.2 3 0.2 0.002 70" wait 5 tick wait 2 tick execute console command "/execute as @p at @s run particle minecraft:end_rod ~ ~ ~ 1 2 1 0.002 300" execute console command "effect clear @p" execute console command "kill @e[type=armor_stand,tag=oczyszczenie]" command /wind: trigger: wait 1 tick execute console command "/execute as @p at @s run particle minecraft:end_rod ~ ~ ~ 1 2 1 0.002 300" loop 40 times: wait 1 tick set {_ile} to loop-value set {_ile} to {_ile}*2.5 send "&7Uruchamianie&7, uruchumiono w &c%{_ile}%" spawn 1 armor stand at location at player's x-coordinate, player's y-coordinate+1, player's z-coordinate in world "world" execute console command "data merge entity @e[type=armor_stand,limit=1] {Invisible:1b}" execute console command "data merge entity @e[type=armor_stand,limit=1] {NoGravity:1b}" execute console command "data merge entity @e[type=armor_stand,limit=1] {Tags:['wind']}" loop 60 times: execute console command "execute at @e[tag=wind] run function img:wind" execute console command "/execute as @p at @s run tp @e[type=minecraft:armor_stand,tag=wind] ~ ~-1 ~ ~3 ~" if player is sneaking: push the player forwards with speed 0.1 push the player upward with speed 0.3 if loop-value > 39: set {zostalo} to 60 - loop-value set {zostalo} to {zostalo}*3 set {zostalo} to {zostalo}/20 send "&cUwaga&7, zostalo &c%{zostalo}% &7sekund" wait 3 tick execute console command "kill @e[type=armor_stand,tag=wind]" command /give_wand: trigger: