Ktoś pomoże ustawić procentową szanse na {_x} = 5 bez naruszania poprawnego dzialania kodu?
on break of stone:
chance of 100%
give 1 chest named "&c&lSilver Chest" to player
on rightclick:
if player's tool is chest named "&c&lSilver Chest":
remove chest named "&c&lSilver Chest" from player's inventory
chance of 100%
set {_x} to random integer between 1 and 4
if {_x} is 1:
give 1 diamond to player
if {_x} is 2:
give 1 golden apple to player
if {_x} is 3:
give 2 iron block to player
if {_x} is 4:
give unbreakable wooden sword of sharpness 10 named "&4Niszczyciel" to player
if {_x} is 5:
send "&c&lSkrzynia byla pusta"
Pytanie
kromalek 0
Ktoś pomoże ustawić procentową szanse na {_x} = 5 bez naruszania poprawnego dzialania kodu?
on break of stone: chance of 100% give 1 chest named "&c&lSilver Chest" to player on rightclick: if player's tool is chest named "&c&lSilver Chest": remove chest named "&c&lSilver Chest" from player's inventory chance of 100% set {_x} to random integer between 1 and 4 if {_x} is 1: give 1 diamond to player if {_x} is 2: give 1 golden apple to player if {_x} is 3: give 2 iron block to player if {_x} is 4: give unbreakable wooden sword of sharpness 10 named "&4Niszczyciel" to player if {_x} is 5: send "&c&lSkrzynia byla pusta"
Edytowane przez WojciuOdnośnik do komentarza
https://skript.pl/temat/39316-jak-to-zrobic/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.