Skocz do zawartości
  • 0

PREMIUMCASE


DarsON

Pytanie

Poprawilby ktos kod bo wyskakuje taki blad:

You don't have the required permission to use this command
 

command /case [<player>] [<text>]:
	permission: rex.premiumcase
	trigger:
		if arg 1 is not set:
			if arg 2 is not set:
				send ""
				send "&4»  &8/&7case &8[&cGracz/&8] [&cIle&8]"
				send "&4»  &8/&7daj all"
		if arg 1 is set:
			if arg 2 is set:
				execute console command "give %arg 1% chest %arg 2%  name:&4&l?_&f&lMagiczna_&2&lKostka_&4&l?"
				send "&4»  &a&lOtrzymales &4&l? &f&lMagiczna &2&lKostka &4&l? &7x&c%arg 2% &a&l!" to player-arg
command /daj all:
	permission: rex.premiumcase
	trigger:
		give 1 chest named "&4&l? &f&lMagiczna &2&lKostka &4&l?" to all players
		broadcast "&7Cały server otrzymal &4&l? &f&lMagiczna &2&lKostke &4&l? &7od &c%player%"
##### DROPY #################

on place:
	if player's tool is chest named "&4&l? &f&lMagiczna &2&lKostka &4&l?":
		loop 4 times:
			set block to beacon
			create an explosion of force 0 at the player
			show mob spawner flames at the targeted block to the player
			wait 0.1 seconds
			set block to glowstone
			create an explosion of force 0 at the player
			show mob spawner flames at the targeted block to the player
			wait 0.1 seconds
			set block to gold block
			create an explosion of force 0 at the player
			show mob spawner flames at the targeted block to the player
			wait 0.1 seconds
			set block to obsidian
			create an explosion of force 0 at the player
			show mob spawner flames at the targeted block to the player
		broadcast ""
		broadcast "&7&lGracz &2&l%player% &7&lotworzył &4&l? &f&lMagiczna &2&lKostke &4&l? i otrzymał:"
		chance of 90%:
			drop 10 diamond
			broadcast "&4»  &7Diament &8x &f10"
		chance of 60%:
			drop 1 diamond helmet of protection 5 and unbreaking 3
			broadcast "&4»  &4Helm &c5/3  &8x &f1"
		chance of 70%:
			drop 10 emeralds
			broadcast "&4»  &7Emerald &8x &f10"
		chance of 70%:
			drop 5 gold block
			broadcast "&4»  &7Złoty Blok &8x &f5"
		chance of 60%:
			drop 1 diamond leggings of protection 5 and unbreaking 3
			broadcast "&4»  &4Spodnie &c5/3  &8x &f1"
		chance of 40%:
			drop 64 obsidian
			broadcast "&4»  &7Obsydian &8x &f64"
		chance of 60%:
			drop 1 diamond pickaxe of efficiency 6 and unbreaking 1 and fortune 3
			broadcast "&4»  &2Kilof &a6/3/1  &8x &f1"
		chance of 60%:
			drop 20 Iron ingot
			broadcast "&4»  &7Zelazo &8x &f20"
		chance of 60%:
			drop 1 diamond sword of sharpness 6 and unbreaking 2 and flame 2
			broadcast "&4»  &2Miecz &a6/2/2  &8x &f1"
		chance of 20%:
			drop 1 anvil
			broadcast "&4»  &7Kowadlo &8x &f1"
		chance of 60%:
			drop 1 diamond boots of protection 5 and unbreaking 3
			broadcast "&4»  &4Buty &c5/3  &8x &f1"
		chance of 30%:
			drop 20 Glowstone
			broadcast "&4»  &7Jasnoglaz &8x &f20"
		chance of 50%:
			drop 10 tnt
			broadcast "&4»  &7Tnt &8x &f10"
		chance of 60%:
			drop 1 diamond chestplate of protection 5 and unbreaking 3
			broadcast "&4»  &4Klata &c5/3  &8x &f1"
		loop 10 times:
			spawn 1 bats at block
			set the displayname of last spawned entity to "&8» &F&lMagiczna &2&lKostka"
			show mob spawner flames at the last spawned entity to the player
		strike lightning effect at the player
		set block to air
		wait 2 seconds
		kill all bats

 

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Godzinę temu, DarsON napisał:

Poprawilby ktos kod bo wyskakuje taki blad:

You don't have the required permission to use this command
 


command /case [<player>] [<text>]:
	permission: rex.premiumcase
	trigger:
		if arg 1 is not set:
			if arg 2 is not set:
				send ""
				send "&4»  &8/&7case &8[&cGracz/&8] [&cIle&8]"
				send "&4»  &8/&7daj all"
		if arg 1 is set:
			if arg 2 is set:
				execute console command "give %arg 1% chest %arg 2%  name:&4&l?_&f&lMagiczna_&2&lKostka_&4&l?"
				send "&4»  &a&lOtrzymales &4&l? &f&lMagiczna &2&lKostka &4&l? &7x&c%arg 2% &a&l!" to player-arg
command /daj all:
	permission: rex.premiumcase
	trigger:
		give 1 chest named "&4&l? &f&lMagiczna &2&lKostka &4&l?" to all players
		broadcast "&7Cały server otrzymal &4&l? &f&lMagiczna &2&lKostke &4&l? &7od &c%player%"
##### DROPY #################

on place:
	if player's tool is chest named "&4&l? &f&lMagiczna &2&lKostka &4&l?":
		loop 4 times:
			set block to beacon
			create an explosion of force 0 at the player
			show mob spawner flames at the targeted block to the player
			wait 0.1 seconds
			set block to glowstone
			create an explosion of force 0 at the player
			show mob spawner flames at the targeted block to the player
			wait 0.1 seconds
			set block to gold block
			create an explosion of force 0 at the player
			show mob spawner flames at the targeted block to the player
			wait 0.1 seconds
			set block to obsidian
			create an explosion of force 0 at the player
			show mob spawner flames at the targeted block to the player
		broadcast ""
		broadcast "&7&lGracz &2&l%player% &7&lotworzył &4&l? &f&lMagiczna &2&lKostke &4&l? i otrzymał:"
		chance of 90%:
			drop 10 diamond
			broadcast "&4»  &7Diament &8x &f10"
		chance of 60%:
			drop 1 diamond helmet of protection 5 and unbreaking 3
			broadcast "&4»  &4Helm &c5/3  &8x &f1"
		chance of 70%:
			drop 10 emeralds
			broadcast "&4»  &7Emerald &8x &f10"
		chance of 70%:
			drop 5 gold block
			broadcast "&4»  &7Złoty Blok &8x &f5"
		chance of 60%:
			drop 1 diamond leggings of protection 5 and unbreaking 3
			broadcast "&4»  &4Spodnie &c5/3  &8x &f1"
		chance of 40%:
			drop 64 obsidian
			broadcast "&4»  &7Obsydian &8x &f64"
		chance of 60%:
			drop 1 diamond pickaxe of efficiency 6 and unbreaking 1 and fortune 3
			broadcast "&4»  &2Kilof &a6/3/1  &8x &f1"
		chance of 60%:
			drop 20 Iron ingot
			broadcast "&4»  &7Zelazo &8x &f20"
		chance of 60%:
			drop 1 diamond sword of sharpness 6 and unbreaking 2 and flame 2
			broadcast "&4»  &2Miecz &a6/2/2  &8x &f1"
		chance of 20%:
			drop 1 anvil
			broadcast "&4»  &7Kowadlo &8x &f1"
		chance of 60%:
			drop 1 diamond boots of protection 5 and unbreaking 3
			broadcast "&4»  &4Buty &c5/3  &8x &f1"
		chance of 30%:
			drop 20 Glowstone
			broadcast "&4»  &7Jasnoglaz &8x &f20"
		chance of 50%:
			drop 10 tnt
			broadcast "&4»  &7Tnt &8x &f10"
		chance of 60%:
			drop 1 diamond chestplate of protection 5 and unbreaking 3
			broadcast "&4»  &4Klata &c5/3  &8x &f1"
		loop 10 times:
			spawn 1 bats at block
			set the displayname of last spawned entity to "&8» &F&lMagiczna &2&lKostka"
			show mob spawner flames at the last spawned entity to the player
		strike lightning effect at the player
		set block to air
		wait 2 seconds
		kill all bats

 

command /case [<player>] [<text>]:
    permission: rex.premiumcase
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send ""
                send "&4»  &8/&7case &8[&cGracz/&8] [&cIle&8]"
                send "&4»  &8/&7daj all"
        if arg 1 is set:
            if arg 2 is set:
                execute console command "give %arg 1% chest %arg 2%  name:&4&l?_&f&lMagiczna_&2&lKostka_&4&l?"
                send "&4»  &a&lOtrzymales &4&l? &f&lMagiczna &2&lKostka &4&l? &7x&c%arg 2% &a&l!" to player-arg
command /daj all:
    permission: rex.premiumcase
    trigger:
        give 1 chest named "&4&l? &f&lMagiczna &2&lKostka &4&l?" to all players
        broadcast "&7Cały server otrzymal &4&l? &f&lMagiczna &2&lKostke &4&l? &7od &c%player%"
#
# DROP
#
on place:
    if player's tool is chest named "&4&l? &f&lMagiczna &2&lKostka &4&l?":
        loop 4 times:
            set block to beacon
            create an explosion of force 0 at the player
            show mob spawner flames at the targeted block to the player
            wait 0.1 seconds
            set block to glowstone
            create an explosion of force 0 at the player
            show mob spawner flames at the targeted block to the player
            wait 0.1 seconds
            set block to gold block
            create an explosion of force 0 at the player
            show mob spawner flames at the targeted block to the player
            wait 0.1 seconds
            set block to obsidian
            create an explosion of force 0 at the player
            show mob spawner flames at the targeted block to the player
        broadcast ""
        broadcast "&7&lGracz &2&l%player% &7&lotworzył &4&l? &f&lMagiczna &2&lKostke &4&l? i otrzymał:"
        chance of 90%:
            drop 10 diamond
            broadcast "&4»  &7Diament &8x &f10"
        chance of 60%:
            drop 1 diamond helmet of protection 5 and unbreaking 3
            broadcast "&4»  &4Helm &c5/3  &8x &f1"
        chance of 70%:
            drop 10 emeralds
            broadcast "&4»  &7Emerald &8x &f10"
        chance of 70%:
            drop 5 gold block
            broadcast "&4»  &7Złoty Blok &8x &f5"
        chance of 60%:
            drop 1 diamond leggings of protection 5 and unbreaking 3
            broadcast "&4»  &4Spodnie &c5/3  &8x &f1"
        chance of 40%:
            drop 64 obsidian
            broadcast "&4»  &7Obsydian &8x &f64"
        chance of 60%:
            drop 1 diamond pickaxe of efficiency 6 and unbreaking 1 and fortune 3
            broadcast "&4»  &2Kilof &a6/3/1  &8x &f1"
        chance of 60%:
            drop 20 Iron ingot
            broadcast "&4»  &7Zelazo &8x &f20"
        chance of 60%:
            drop 1 diamond sword of sharpness 6 and unbreaking 2 and flame 2
            broadcast "&4»  &2Miecz &a6/2/2  &8x &f1"
        chance of 20%:
            drop 1 anvil
            broadcast "&4»  &7Kowadlo &8x &f1"
        chance of 60%:
            drop 1 diamond boots of protection 5 and unbreaking 3
            broadcast "&4»  &4Buty &c5/3  &8x &f1"
        chance of 30%:
            drop 20 Glowstone
            broadcast "&4»  &7Jasnoglaz &8x &f20"
        chance of 50%:
            drop 10 tnt
            broadcast "&4»  &7Tnt &8x &f10"
        chance of 60%:
            drop 1 diamond chestplate of protection 5 and unbreaking 3
            broadcast "&4»  &4Klata &c5/3  &8x &f1"
        loop 10 times:
            spawn 1 bats at block
            set the displayname of last spawned entity to "&8» &F&lMagiczna &2&lKostka"
            show mob spawner flames at the last spawned entity to the player
        strike lightning effect at the player
        set block to air
        wait 2 seconds
        kill all bats

 

Powinno dzialac

 

Edit:

Nie mozna robic takich linijek z kilka razy # bo cos skript tego nie czyta :)

Edytowane przez MysteryYou
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...