Napisałem taki oto skrypt na case, bo dopiero się uczę, ale wyskoczyły mi błędy więc proszę was o pomoc.
Próbowałem go naprawić, ale nie umiem dalej
on place:
if placed block is chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+":
cancel event
remove 1 chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" from player's inventory
chance of 39%:
give 1 diamond helmet of protection 6 and unbreaking 4 to player
send "&b&l» &9Wydropiłeś hełm 6/4!" to player
chance of 39%:
give 1 diamond chestplate of protection 6 and unbreaking 4 to player
send "&b&l» &9Wydropiłeś klatę 6/4!" to player
chance of 39%:
give 1 diamond leggings of protection 6 and unbreaking 4 to player
send "&b&l» &9Wydropiłeś spodnie 6/4!" to player
chance of 39%:
give 1 diamond boots of protection 6 and unbreaking 4 and feather falling 6 to player
send "&b&l» &9Wydropiłeś buty 6/4!" to player
chance of 6.7%:
give 1 diamond sword of sharpness 6 and unbreaking 3 and fire aspect 2 to player
send "&b&l» &9Wydropiłeś miecz 6/3/2!" to player
chance of 0.7%:
give 1 diamond hoe named "&9&oKosa zagłady" of knockback 10 and fire aspect 3 and sharpness 6 to player
send "&b&l» &9Wydropiłeś &c&lKosę zagłady!" to player
send "&b&l» &9Gracz %player% wydropił &c&lKosę zagłady!" to all players
chance of 0.3%:
give 1 golden axe named "&6&oTopor Tyranow" of sharpness 8 and unbreaking 10 to player
send "&b&l» &9Wydropiłeś &6&lTopór Tyranów!" to player
send "&b&l» &9Gracz %player% wydropił &6&lTopór Tyranow" to all players
chance of 0.1%:
give 1 iron sword named "&5&l&oExcalibur!" of sharpness 25 and unbreaking 100 to player
send "&b&l» &9Wydropiłeś &5&l&oExcalibur! &7- &cNajlepszą broń na serwerze!" to player
send "&b&l» &9Gracz %player% wydropił &5&l&oExcalibur! &7- &cNajlepszą broń na serwerze!" to all players
chance of 4%:
give 1 beacon named "&6&lB&c&lE&4&lA&a&lC&f&lO&b&lN" to player
send "&b&l» &9Wydropiłeś &6&lB&c&lE&4&lA&a&lC&f&lO&b&lN" to player
chance of 0.4%:
give 1 blaze rod named "&c&oSmocza włócznia" of sharpness 15 and fire aspect 3 to player
send "&b&l» &9Wydropiłeś &6&oSmoczą włócznię" to player
send "&b&l» &9Gracz %player% wydropił &6&oSmoczą włócznię!"
command /givecase [<player>] [<number>]:
permission: case.give
permission message: "&4Blad! &cNie masz uprawien!"
trigger:
set {_executor} to the command executor
give %arg 2% chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+" to %arg 1%
send "&b&l» &9Otrzymałeś &6%arg 2% &6PremiumCase od &6%{_executor}%"
Logi z konsoli:
[19:26:45] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (case.sk, line 2: if placed block is a chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+":')
[19:26:45] [Server thread/ERROR]: Can't compare 'placed block' with an item type (case.sk, line 2: if placed block is a chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+":')
[19:26:45] [Server thread/ERROR]: ('1 diamond hoe named "&9&oKosa zag?ady" of knockback 10', 'fire aspect 3' and 'sharpness 6') can't be added to a player because the former is neither an item type, an inventory nor an experience point (case.sk, line 21: give 1 diamond hoe named "&9&oKosa zag?ady" of knockback 10 and fire aspect 3 and sharpness 6 to player')
[19:26:45] [Server thread/ERROR]: ('1 golden axe named "&6&oTopor Tyranow" of sharpness 8' and 'unbreaking 10') can't be added to a player because the former is neither an item type, an inventory nor an experience point (case.sk, line 25: give 1 golden axe named "&6&oTopor Tyranow" of sharpness 8 and unbreaking 10 to player')
[19:26:45] [Server thread/ERROR]: ('1 iron sword named "&5&l&oExcalibur!" of sharpness 25' and 'unbreaking 100') can't be added to a player because the former is neither an item type, an inventory nor an experience point (case.sk, line 29: give 1 iron sword named "&5&l&oExcalibur!" of sharpness 25 and unbreaking 100 to player')
[19:26:45] [Server thread/ERROR]: ('1 blaze rod named "&c&oSmocza w??cznia" of sharpness 15' and 'fire aspect 3') can't be added to a player because the former is neither an item type, an inventory nor an experience point (case.sk, line 36: give 1 blaze rod named "&c&oSmocza w??cznia" of sharpness 15 and fire aspect 3 to player')
[19:26:45] [Server thread/ERROR]: Can't understand this condition/effect: give %arg 1% %arg 2% chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+" (case.sk, line 45: give %arg 1% %arg 2% chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+"')
[19:26:45] [Server thread/INFO]: [Skript] Encountered 6 errors while reloading case.sk!
Pytanie
Jakubk15 3
Hej,
Napisałem taki oto skrypt na case, bo dopiero się uczę, ale wyskoczyły mi błędy więc proszę was o pomoc.
Próbowałem go naprawić, ale nie umiem dalej
on place: if placed block is chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+": cancel event remove 1 chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" from player's inventory chance of 39%: give 1 diamond helmet of protection 6 and unbreaking 4 to player send "&b&l» &9Wydropiłeś hełm 6/4!" to player chance of 39%: give 1 diamond chestplate of protection 6 and unbreaking 4 to player send "&b&l» &9Wydropiłeś klatę 6/4!" to player chance of 39%: give 1 diamond leggings of protection 6 and unbreaking 4 to player send "&b&l» &9Wydropiłeś spodnie 6/4!" to player chance of 39%: give 1 diamond boots of protection 6 and unbreaking 4 and feather falling 6 to player send "&b&l» &9Wydropiłeś buty 6/4!" to player chance of 6.7%: give 1 diamond sword of sharpness 6 and unbreaking 3 and fire aspect 2 to player send "&b&l» &9Wydropiłeś miecz 6/3/2!" to player chance of 0.7%: give 1 diamond hoe named "&9&oKosa zagłady" of knockback 10 and fire aspect 3 and sharpness 6 to player send "&b&l» &9Wydropiłeś &c&lKosę zagłady!" to player send "&b&l» &9Gracz %player% wydropił &c&lKosę zagłady!" to all players chance of 0.3%: give 1 golden axe named "&6&oTopor Tyranow" of sharpness 8 and unbreaking 10 to player send "&b&l» &9Wydropiłeś &6&lTopór Tyranów!" to player send "&b&l» &9Gracz %player% wydropił &6&lTopór Tyranow" to all players chance of 0.1%: give 1 iron sword named "&5&l&oExcalibur!" of sharpness 25 and unbreaking 100 to player send "&b&l» &9Wydropiłeś &5&l&oExcalibur! &7- &cNajlepszą broń na serwerze!" to player send "&b&l» &9Gracz %player% wydropił &5&l&oExcalibur! &7- &cNajlepszą broń na serwerze!" to all players chance of 4%: give 1 beacon named "&6&lB&c&lE&4&lA&a&lC&f&lO&b&lN" to player send "&b&l» &9Wydropiłeś &6&lB&c&lE&4&lA&a&lC&f&lO&b&lN" to player chance of 0.4%: give 1 blaze rod named "&c&oSmocza włócznia" of sharpness 15 and fire aspect 3 to player send "&b&l» &9Wydropiłeś &6&oSmoczą włócznię" to player send "&b&l» &9Gracz %player% wydropił &6&oSmoczą włócznię!" command /givecase [<player>] [<number>]: permission: case.give permission message: "&4Blad! &cNie masz uprawien!" trigger: set {_executor} to the command executor give %arg 2% chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+" to %arg 1% send "&b&l» &9Otrzymałeś &6%arg 2% &6PremiumCase od &6%{_executor}%"Logi z konsoli:
[19:26:45] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (case.sk, line 2: if placed block is a chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+":') [19:26:45] [Server thread/ERROR]: Can't compare 'placed block' with an item type (case.sk, line 2: if placed block is a chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+":') [19:26:45] [Server thread/ERROR]: ('1 diamond hoe named "&9&oKosa zag?ady" of knockback 10', 'fire aspect 3' and 'sharpness 6') can't be added to a player because the former is neither an item type, an inventory nor an experience point (case.sk, line 21: give 1 diamond hoe named "&9&oKosa zag?ady" of knockback 10 and fire aspect 3 and sharpness 6 to player') [19:26:45] [Server thread/ERROR]: ('1 golden axe named "&6&oTopor Tyranow" of sharpness 8' and 'unbreaking 10') can't be added to a player because the former is neither an item type, an inventory nor an experience point (case.sk, line 25: give 1 golden axe named "&6&oTopor Tyranow" of sharpness 8 and unbreaking 10 to player') [19:26:45] [Server thread/ERROR]: ('1 iron sword named "&5&l&oExcalibur!" of sharpness 25' and 'unbreaking 100') can't be added to a player because the former is neither an item type, an inventory nor an experience point (case.sk, line 29: give 1 iron sword named "&5&l&oExcalibur!" of sharpness 25 and unbreaking 100 to player') [19:26:45] [Server thread/ERROR]: ('1 blaze rod named "&c&oSmocza w??cznia" of sharpness 15' and 'fire aspect 3') can't be added to a player because the former is neither an item type, an inventory nor an experience point (case.sk, line 36: give 1 blaze rod named "&c&oSmocza w??cznia" of sharpness 15 and fire aspect 3 to player') [19:26:45] [Server thread/ERROR]: Can't understand this condition/effect: give %arg 1% %arg 2% chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+" (case.sk, line 45: give %arg 1% %arg 2% chest named "&f&o&k;&6&l&k&o;&f&o&k;&4&l &4&LPREMIUMCASE &f&o&k;&6&l&k&o;&f&o&k;" with lore "&8&M+---------------------------------+ || &5&oTen przedmioty jest wyjatkowo Legendarny. || &5&oW srodku ten skrzyni znajduja sie bardzo || &5&oCenne przedmioty, otworzenie jej spowoduje || &5&oWielki wybuch i uwolnienie mocy, co skutkuje || &5&oWyrzuceniem przedmiotow do Twojego ekwipunku! || &a&oChcesz sprobowac swojego szczescia? || &a&oSmialo, wez ta skrzynie do reki i ja poloz! || &f&oJestes ciekaw co wyleci? Wpisz: &4&l&o/CASE || &8&M+---------------------------------+"') [19:26:45] [Server thread/INFO]: [Skript] Encountered 6 errors while reloading case.sk!Odnośnik do komentarza
https://skript.pl/temat/41166-problem/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi