# ########################################################### # # Name: Roulette # Author: Saanjuk @doped.pl # Code Version: 1.0 # Minecraft Server Version: Any # # ChangeLog: # v 1.0 - Create code :) # ########################################################### options: nagrody: lava bucket and netherite chestplate and golden apple and netherite sword and golden carrot and gold ingot and diamond bloki: blue stained glass pane and green stained glass pane and yellow stained glass pane and red stained glass pane and purple stained glass pane and magenta stained glass pane and blue stained glass pane and green stained glass pane and yellow stained glass pane and red stained glass pane and purple stained glass pane and magenta stained glass pane and blue stained glass pane and green stained glass pane and yellow stained glass pane and red stained glass pane and purple stained glass pane and magenta stained glass pane gui_name: "&6Losowanie" command /losowanie: permission: roulette.use permission message: &cNie masz dostepu do tej komendy! trigger: set {nagrody::*} to {@nagrody} set {bloki::*} to {@bloki} set {_gui} to chest inventory with 3 rows named {@gui_name} set slot (integers between 0 and 9) and (integers between 17 and 26) of {_gui} to diamond block set slot 10 of {_gui} to random element out of {bloki::*} set slot 11 of {_gui} to random element out of {nagrody::*} set slot 12 of {_gui} to random element out of {bloki::*} set slot 13 of {_gui} to random element out of {nagrody::*} set slot 14 of {_gui} to random element out of {bloki::*} set slot 15 of {_gui} to random element out of {nagrody::*} set slot 16 of {_gui} to random element out of {bloki::*} open {_gui} to {_p} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {nagrody::*} set slot 11 of {_gui} to random element out of {bloki::*} set slot 12 of {_gui} to random element out of {nagrody::*} set slot 13 of {_gui} to random element out of {bloki::*} set slot 14 of {_gui} to random element out of {nagrody::*} set slot 15 of {_gui} to random element out of {bloki::*} set slot 16 of {_gui} to random element out of {nagrody::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {bloki::*} set slot 11 of {_gui} to random element out of {nagrody::*} set slot 12 of {_gui} to random element out of {bloki::*} set slot 13 of {_gui} to random element out of {nagrody::*} set slot 14 of {_gui} to random element out of {bloki::*} set slot 15 of {_gui} to random element out of {nagrody::*} set slot 16 of {_gui} to random element out of {bloki::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {nagrody::*} set slot 11 of {_gui} to random element out of {bloki::*} set slot 12 of {_gui} to random element out of {nagrody::*} set slot 13 of {_gui} to random element out of {bloki::*} set slot 14 of {_gui} to random element out of {nagrody::*} set slot 15 of {_gui} to random element out of {bloki::*} set slot 16 of {_gui} to random element out of {nagrody::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {bloki::*} set slot 11 of {_gui} to random element out of {nagrody::*} set slot 12 of {_gui} to random element out of {bloki::*} set slot 13 of {_gui} to random element out of {nagrody::*} set slot 14 of {_gui} to random element out of {bloki::*} set slot 15 of {_gui} to random element out of {nagrody::*} set slot 16 of {_gui} to random element out of {bloki::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {nagrody::*} set slot 11 of {_gui} to random element out of {bloki::*} set slot 12 of {_gui} to random element out of {nagrody::*} set slot 13 of {_gui} to random element out of {bloki::*} set slot 14 of {_gui} to random element out of {nagrody::*} set slot 15 of {_gui} to random element out of {bloki::*} set slot 16 of {_gui} to random element out of {nagrody::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {bloki::*} set slot 11 of {_gui} to random element out of {nagrody::*} set slot 12 of {_gui} to random element out of {bloki::*} set slot 13 of {_gui} to random element out of {nagrody::*} set slot 14 of {_gui} to random element out of {bloki::*} set slot 15 of {_gui} to random element out of {nagrody::*} set slot 16 of {_gui} to random element out of {bloki::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {nagrody::*} set slot 11 of {_gui} to random element out of {bloki::*} set slot 12 of {_gui} to random element out of {nagrody::*} set slot 13 of {_gui} to random element out of {bloki::*} set slot 14 of {_gui} to random element out of {nagrody::*} set slot 15 of {_gui} to random element out of {bloki::*} set slot 16 of {_gui} to random element out of {nagrody::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {bloki::*} set slot 11 of {_gui} to random element out of {nagrody::*} set slot 12 of {_gui} to random element out of {bloki::*} set slot 13 of {_gui} to random element out of {nagrody::*} set slot 14 of {_gui} to random element out of {bloki::*} set slot 15 of {_gui} to random element out of {nagrody::*} set slot 16 of {_gui} to random element out of {bloki::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {nagrody::*} set slot 11 of {_gui} to random element out of {bloki::*} set slot 12 of {_gui} to random element out of {nagrody::*} set slot 13 of {_gui} to random element out of {bloki::*} set slot 14 of {_gui} to random element out of {nagrody::*} set slot 15 of {_gui} to random element out of {bloki::*} set slot 16 of {_gui} to random element out of {nagrody::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {bloki::*} set slot 11 of {_gui} to random element out of {nagrody::*} set slot 12 of {_gui} to random element out of {bloki::*} set slot 13 of {_gui} to random element out of {nagrody::*} set slot 14 of {_gui} to random element out of {bloki::*} set slot 15 of {_gui} to random element out of {nagrody::*} set slot 16 of {_gui} to random element out of {bloki::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {nagrody::*} set slot 11 of {_gui} to random element out of {bloki::*} set slot 12 of {_gui} to random element out of {nagrody::*} set slot 13 of {_gui} to random element out of {bloki::*} set slot 14 of {_gui} to random element out of {nagrody::*} set slot 15 of {_gui} to random element out of {bloki::*} set slot 16 of {_gui} to random element out of {nagrody::*} wait 3 tick play sound "ui_button_click" to {_p} set slot 10 of {_gui} to random element out of {bloki::*} set slot 11 of {_gui} to random element out of {nagrody::*} set slot 12 of {_gui} to random element out of {bloki::*} set slot 13 of {_gui} to random element out of {nagrody::*} set slot 14 of {_gui} to random element out of {bloki::*} set slot 15 of {_gui} to random element out of {nagrody::*} set slot 16 of {_gui} to random element out of {bloki::*} play sound "entity_experience_orb_pickup" to {_p} give slot 13 of {_gui} to {_p} on inventory click: if name of event-inventory is {@gui_name}: cancel event if event-inventory is player's inventory: cancel event