Skocz do zawartości
  • 0

Pomoc z dropem do inv i poza


Pytanie

WItam otóż mam mały problem, chcę zrobić tak aby żelazo dropilo do inventory gdy mamy miejsce ale gdy juz jest pełne to aby dropiło poza, oto kawałek skriptu, z góry dziekuje, wiem że cos zle robie napewno

on mine of cobblestone:
    if player's tool is pickaxe:
        chance of {@zelazo}:
            give a random number between 2 and 1 of iron ingot to the player
        if player doesn't have enough space for iron ingot
            drop random number between 2 and 1 of iron ingot at event-block
            send "{@tag}&7 Znalazles zelazo!"
            stop

Odnośnik do komentarza
https://skript.pl/temat/17581-pomoc-z-dropem-do-inv-i-poza/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
on mine of cobblestone:
    if player's tool is pickaxe:
        chance of {@zelazo}:
            loop all slots in inventory of player:
                loop-slot is empty:
                    give a random number between 2 and 1 of iron ingot to the player
                    stop loop
                else:
                    drop a random number between 2 and 1 of iron ingot at event-block

 

Odnośnik do komentarza
https://skript.pl/temat/17581-pomoc-z-dropem-do-inv-i-poza/#findComment-120282
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ę...