Czy mógłby mi ktoś dopisać do tego skryptu aby było zamiast /pierozki add (nazwa itemu) było /pierozki add (przedmiot ktory trzyma się w ręce) (procent)
on rightclick: player is holding a dragon_egg named "&6&lPierozek" give a random item of {pierozeklose::*} to player send "&a[&e&lPierozki&a] &9Otworzyles Pierozka!" wait a tick send "&aDostales przedmiot!" remove dragon_egg named "&6&lPierozek" from the player # Komendy command /pierozki [<text="pomoc">] [<items>]: permission: pierozki.admin trigger: argument 1 is not "pomoc", "add" or "remove": send "&4Blad:&cNieznana komenda, lub zla nazwa item'a !" stop argument 1 is "pomoc": send " &1######## &e&L Pierozki &1########" send "&c» &3/Pierozki add nazwaitemu &8- Dodaje item do dropu!&6" send "&c» &3/Pierozki remove nazwaitemu &8- Usuwa item z dropu!" send "&c» &3/Pierozki pomoc &8- Pokazuje wszystkie komendy!&6" send "&c» &3/Pierozkidaj <ilosc>&8 Dostajesz pierozki! (Ilosc co 5)" send "&c» &3/Pierozkiall &8- Daje wszystkim graczom Pierozka!&6 " send "&c» &3Lista item'ow z dropu:&6 %{pierozeklose::*}%" send " &1######## &e&L Pierozki &1########" stop argument 1 is "add": if argument 2 is not set: send "&4Blad:&cMusisz wpisac nazwe przedmiotu!" else: add argument 2 to {pierozeklose::*} send "&aDodano ' %arg 2% ' do dropu!" argument 1 is "remove": if argument 2 is not set: send "&4Blad:&cMusisz wpisac nazwe przedmiotu!" else: remove argument 2 from {pierozeklose::*} send "&cUsunieto ' %arg 2% ' z dropu!" command /pierozkidaj [<text>]: permission: pierozki.me permission message: Nie masz dostepu do tej komendy! trigger: if arg 1 is "5": send "&6» &9Dostales &a5 &cPierozkow!" give 5 dragon_egg named "&6&lPierozek" to player if arg 1 is "10": send "&6» &9Dostales &a10 &cPierozkow!" give 10 dragon_egg named "&6&lPierozek" to player if arg 1 is "15": send "&6» &9Dostales &a15 &cPierozkow!" give 15 dragon_egg named "&6&lPierozek" to player if arg 1 is "20": send "&6» &9Dostales &a20 &cPierozkow!" give 20 dragon_egg named "&6&lPierozek" to player if arg 1 is "25": send "&6» &9Dostales &a25 &cPierozkow!" give 25 dragon_egg named "&6&lPierozek" to player if arg 1 is "30": send "&6» &9Dostales &a30 &cPierozkow!" give 30 dragon_egg named "&6&lPierozek" to player if arg 1 is "35": send "&6» &9Dostales &a35 &cPierozkow!" give 35 dragon_egg named "&6&lPierozek" to player if arg 1 is "40": send "&6» &9Dostales &a40 &cPierozkow!" give 40 dragon_egg named "&6&lPierozek" to player if arg 1 is "45": send "&6» &9Dostales &a45 &cPierozkow!" give 45 dragon_egg named "&6&lPierozek" to player if arg 1 is "50": send "&6» &9Dostales &a50 &cPierozkow!" give 50 dragon_egg named "&6&lPierozek" to player if arg 1 is "55": send "&6» &9Dostales &a55 &cPierozkow!" give 55 dragon_egg named "&6&lPierozek" to player if arg 1 is "60": send "&6» &9Dostales &a60 &cPierozkow!" give 60 dragon_egg named "&6&lPierozek" to player if arg 1 is "64": send "&6» &9Dostales &a64 &cPierozkow!" give 64 dragon_egg named "&6&lPierozek" to player command /pierozkiall: permission: pierozkiall.me permission message: Nie masz dostepu do tej komendy! trigger: loop all players: give dragon_egg named "&6&lPierozek" to players send "&6» &9Dostales &aPierozka od Admina!"
Pytanie
Crystal_PL 93
Czy mógłby mi ktoś dopisać do tego skryptu aby było zamiast /pierozki add (nazwa itemu) było /pierozki add (przedmiot ktory trzyma się w ręce) (procent)
on rightclick:
player is holding a dragon_egg named "&6&lPierozek"
give a random item of {pierozeklose::*} to player
send "&a[&e&lPierozki&a] &9Otworzyles Pierozka!"
wait a tick
send "&aDostales przedmiot!"
remove dragon_egg named "&6&lPierozek" from the player
# Komendy
command /pierozki [<text="pomoc">] [<items>]:
permission: pierozki.admin
trigger:
argument 1 is not "pomoc", "add" or "remove":
send "&4Blad:&cNieznana komenda, lub zla nazwa item'a !"
stop
argument 1 is "pomoc":
send " &1######## &e&L Pierozki &1########"
send "&c» &3/Pierozki add nazwaitemu &8- Dodaje item do dropu!&6"
send "&c» &3/Pierozki remove nazwaitemu &8- Usuwa item z dropu!"
send "&c» &3/Pierozki pomoc &8- Pokazuje wszystkie komendy!&6"
send "&c» &3/Pierozkidaj <ilosc>&8 Dostajesz pierozki! (Ilosc co 5)"
send "&c» &3/Pierozkiall &8- Daje wszystkim graczom Pierozka!&6 "
send "&c» &3Lista item'ow z dropu:&6 %{pierozeklose::*}%"
send " &1######## &e&L Pierozki &1########"
stop
argument 1 is "add":
if argument 2 is not set:
send "&4Blad:&cMusisz wpisac nazwe przedmiotu!"
else:
add argument 2 to {pierozeklose::*}
send "&aDodano ' %arg 2% ' do dropu!"
argument 1 is "remove":
if argument 2 is not set:
send "&4Blad:&cMusisz wpisac nazwe przedmiotu!"
else:
remove argument 2 from {pierozeklose::*}
send "&cUsunieto ' %arg 2% ' z dropu!"
command /pierozkidaj [<text>]:
permission: pierozki.me
permission message: Nie masz dostepu do tej komendy!
trigger:
if arg 1 is "5":
send "&6» &9Dostales &a5 &cPierozkow!"
give 5 dragon_egg named "&6&lPierozek" to player
if arg 1 is "10":
send "&6» &9Dostales &a10 &cPierozkow!"
give 10 dragon_egg named "&6&lPierozek" to player
if arg 1 is "15":
send "&6» &9Dostales &a15 &cPierozkow!"
give 15 dragon_egg named "&6&lPierozek" to player
if arg 1 is "20":
send "&6» &9Dostales &a20 &cPierozkow!"
give 20 dragon_egg named "&6&lPierozek" to player
if arg 1 is "25":
send "&6» &9Dostales &a25 &cPierozkow!"
give 25 dragon_egg named "&6&lPierozek" to player
if arg 1 is "30":
send "&6» &9Dostales &a30 &cPierozkow!"
give 30 dragon_egg named "&6&lPierozek" to player
if arg 1 is "35":
send "&6» &9Dostales &a35 &cPierozkow!"
give 35 dragon_egg named "&6&lPierozek" to player
if arg 1 is "40":
send "&6» &9Dostales &a40 &cPierozkow!"
give 40 dragon_egg named "&6&lPierozek" to player
if arg 1 is "45":
send "&6» &9Dostales &a45 &cPierozkow!"
give 45 dragon_egg named "&6&lPierozek" to player
if arg 1 is "50":
send "&6» &9Dostales &a50 &cPierozkow!"
give 50 dragon_egg named "&6&lPierozek" to player
if arg 1 is "55":
send "&6» &9Dostales &a55 &cPierozkow!"
give 55 dragon_egg named "&6&lPierozek" to player
if arg 1 is "60":
send "&6» &9Dostales &a60 &cPierozkow!"
give 60 dragon_egg named "&6&lPierozek" to player
if arg 1 is "64":
send "&6» &9Dostales &a64 &cPierozkow!"
give 64 dragon_egg named "&6&lPierozek" to player
command /pierozkiall:
permission: pierozkiall.me
permission message: Nie masz dostepu do tej komendy!
trigger:
loop all players:
give dragon_egg named "&6&lPierozek" to players
send "&6» &9Dostales &aPierozka od Admina!"
Odnośnik do komentarza
Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi