Witam, napisałem SK na craftingi, lecz mam problem z craftowaniem rzucanego tnt:
on inventory click:if inventory type of clicked inventory is "CHEST":if inventory name of current inventory of player is "&2&lRzucane TnT":
cancel event
if clicked slot is 44:
wait 1 ticks
execute player command "/crafting"if clicked slot is 33:if player have 4 enchanted golden apple and 5 tnt:
remove 4 enchanted golden apple from player
remove 5 tnt from player
give 1 tnt of power 10 named "&4&lRzucane TnT" to player
send "&8» &aPomyslnie scraftowales przedmiot!"
stop
else:
send "&4Blad: &cNie posiadasz wszystkich przedmiotow!"
Jesli rzucane tnt mamy w ekwipunku blizej niz zwykle tnt to podczas craftowania zabiera rzucane tnt, prosze o zrobienie ze jesli gracz ma np. tylko rzucane tnt a tnt zwyklego w ogole nie ma to po prostu bedzie "nie posiadasz wszystkich przedmiotow" dzieki;)
//Naprawilem, jesli by kogos interesowalo jak to wystarczy zamienic,
if player have 4 enchanted golden apple and 5 tnt:
na
if player have 4 enchanted golden apple and 5 tnt named "":
i rowniez zamienic trzeba:
remove 4 enchanted golden apple and 5 tnt from player
na
remove 4 enchanted golden apple and 5 tnt named "" from player
Pytanie
Wariat25 0
Witam, napisałem SK na craftingi, lecz mam problem z craftowaniem rzucanego tnt:
Jesli rzucane tnt mamy w ekwipunku blizej niz zwykle tnt to podczas craftowania zabiera rzucane tnt, prosze o zrobienie ze jesli gracz ma np. tylko rzucane tnt a tnt zwyklego w ogole nie ma to po prostu bedzie "nie posiadasz wszystkich przedmiotow" dzieki;)
//Naprawilem, jesli by kogos interesowalo jak to wystarczy zamienic,
if player have 4 enchanted golden apple and 5 tnt:na
if player have 4 enchanted golden apple and 5 tnt named "":i rowniez zamienic trzeba:
remove 4 enchanted golden apple and 5 tnt from playerna
remove 4 enchanted golden apple and 5 tnt named "" from playerdo zamkniecia dziekuje.
Edytowane przez Wariat25Odnośnik do komentarza
https://skript.pl/temat/36867-pomoc-z-zabieraniem-przedmiotu/Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi