Konkretnie chodzi o "remove 1 of player's held item from player's inventory" tylko jak zrobić, żeby usuwało tylko 1 item, bo usuwa oba itemy jak ma się je na pasku o to cały kod:
on consume of potion:
set {_item} to player's held item
if the name of {_item} is "&fJump Potion":
set {_potion} to potion effect of jump boost 5 without particles for 45 seconds
add {_potion} to potion effects of player
remove 1 of player's held item from player's inventory
Pytanie
Gość Usunięty#25541
Konkretnie chodzi o "remove 1 of player's held item from player's inventory" tylko jak zrobić, żeby usuwało tylko 1 item, bo usuwa oba itemy jak ma się je na pasku o to cały kod:
on consume of potion: set {_item} to player's held item if the name of {_item} is "&fJump Potion": set {_potion} to potion effect of jump boost 5 without particles for 45 seconds add {_potion} to potion effects of player remove 1 of player's held item from player's inventoryOdnośnik do komentarza
https://skript.pl/temat/46111-remove-item/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi