on right click on ender chest:
block under is bedrock:
cancel event
open chest inventory with 1 rows named "&6Skrzynki" to player
set slot 0 of player's current inventory to chest named "&7&lZwykla"
set slot 2 of player's current inventory to chest named "&a&lPospolita"
set slot 4 of player's current inventory to chest named "&b&lRzadka"
set slot 6 of player's current inventory to chest named "&5&lEpicka"
set slot 8 of player's current inventory to chest named "&6&lLegendarna"
on inventory click:
if inventory name of current inventory of player is "&6Skrzynki":
clicked slot is 0:
if player have 1 tripwire hook named "&7&lZwykly Klucz":
cancel event
remove 1 tripwire hook named "&7&lZwykly Klucz" from player's inventory
chance of 80%:
give 6 obsidian to player
broadcast "&6%player% &7wylosowal: &6Obsydian (x6)"
chance of 70%:
give 32 brick block to player
broadcast "&6%player% &7wylosowal: &6Cegly (x32)"
chance of 60%:
give 16 apple to player
broadcast "&6%player% &7wylosowal: &6Jablko (x16)"
if player don't have 1 tripwire hook named "&7&lZwykly Klucz":
cancel event
wait 0.2 seconds
send player title "&4&lBLAD" with subtitle "&cNie masz klucza!"
close player's inventory
Gdy klikam w gui na Zwykla to wtedy losuje mi wiele itemow a ja chce zeby tylko pojedyncze itemy sie losowaly np tylko obsydian, a nie w tym samym monecie jablka i cegly
Pytanie
RediQ 3
Skrypt:
on right click on ender chest: block under is bedrock: cancel event open chest inventory with 1 rows named "&6Skrzynki" to player set slot 0 of player's current inventory to chest named "&7&lZwykla" set slot 2 of player's current inventory to chest named "&a&lPospolita" set slot 4 of player's current inventory to chest named "&b&lRzadka" set slot 6 of player's current inventory to chest named "&5&lEpicka" set slot 8 of player's current inventory to chest named "&6&lLegendarna" on inventory click: if inventory name of current inventory of player is "&6Skrzynki": clicked slot is 0: if player have 1 tripwire hook named "&7&lZwykly Klucz": cancel event remove 1 tripwire hook named "&7&lZwykly Klucz" from player's inventory chance of 80%: give 6 obsidian to player broadcast "&6%player% &7wylosowal: &6Obsydian (x6)" chance of 70%: give 32 brick block to player broadcast "&6%player% &7wylosowal: &6Cegly (x32)" chance of 60%: give 16 apple to player broadcast "&6%player% &7wylosowal: &6Jablko (x16)" if player don't have 1 tripwire hook named "&7&lZwykly Klucz": cancel event wait 0.2 seconds send player title "&4&lBLAD" with subtitle "&cNie masz klucza!" close player's inventoryGdy klikam w gui na Zwykla to wtedy losuje mi wiele itemow a ja chce zeby tylko pojedyncze itemy sie losowaly np tylko obsydian, a nie w tym samym monecie jablka i cegly
Odnośnik do komentarza
https://skript.pl/temat/46514-przerobienie-skryptu-chance-of/Udostępnij na innych stronach
1 odpowiedź 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ą.