options: #PODSTAWOWE: tag: &8[&c&lXRAY&8] on_alert: &6Alerty włączono. off_alert: &6Alerty wyłączono. #ALERTY O ZNALEZIENIU: find_diamond: &6%player% znalazł diament! find_emerald: &6%player% znalazł emerald! find_gold: &6%player% znalazł złoto! find_iron: &6%player% znalazł fżelazo! find_lapis: &6%player% znalazł lapis! find_coal: &6%player% znalazł węgiel! find_redstone: &6%player% znalazł redstone! find_ancient: &6%player% znalazł pradawne zglisza! command /xrayalert: permission: xray-notify permission message: &7Nie posiadasz uprawnien &9do tej komendy! trigger: set {_gui} to chest inventory with 1 rows named "&c&lXRAY ALERTY" set slot 0 of {_gui} to diamond ore named "&8» &b&lDIAMENT &8«" set slot 1 of {_gui} to emerald ore named "&8» &2&lEMERALD &8«" set slot 2 of {_gui} to gold ore named "&8» &6&lZLOTO &8«" set slot 3 of {_gui} to iron ore named "&8» &7&lZELAZO &8«" set slot 4 of {_gui} to lapis lazuli ore named "&8» &9&lLAPIS &8«" set slot 5 of {_gui} to coal ore named "&8» &8&lWEGIEL &8«" set slot 6 of {_gui} to redstone ore named "&8» &4&lREDSTONE &8«" set slot 7 of {_gui} to ancient debris named "&8» &8&lZGLISZA &8«" open {_gui} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&c&lXRAY ALERTY": cancel event if clicked slot is 0: if {xraydiamond.%player%} is true: set {xraydiamond.%player%} to false send "{@off_alert}" else: set {xraydiamond.%player%} to true send "{@on_alert}" if clicked slot is 1: if {xrayemeralds.%player%} is true: set {xrayemeralds.%player%} to false send "{@off_alert}" else: set {xrayemeralds.%player%} to true send "{@on_alert}" if clicked slot is 2: if {xraygold.%player%} is true: set {xraygold.%player%} to false send "{@off_alert}" else: set {xraygold.%player%} to true send "{@on_alert}" if clicked slot is 3: if {xrayiron.%player%} is true: set {xrayiron.%player%} to false send "{@off_alert}" else: set {xrayiron.%player%} to true send "{@on_alert}" if clicked slot is 4: if {xraylapis.%player%} is true: set {xraylapis.%player%} to false send "{@on_alert}" else: set {xraylapis.%player%} to true send "{@off_alert}" if clicked slot is 5: if {xraycoal.%player%} is true: set {xraycoal.%player%} to false send "{@off_alert}" else: set {xraycoal.%player%} to true send "{@on_alert}" if clicked slot is 6: if {xrayredstone.%player%} is true: set {xrayredstone.%player%} to false send "{@off_alert}" else: set {xrayredstone.%player%} to true send "{@on_alert}" if clicked slot is 7: if {xrayancient.%player%} is true: set {xrayancient.%player%} to false send "{@off_alert}" else: set {xrayancient.%player%} to true send "{@on_alert}" on break of diamond ore: loop all players: if {xraydiamond.%loop-player%} is true: send "{@tag} {@find_diamond}" on break of emerald ore: loop all players: if {xrayemeralds.%loop-player%} is true: send "{@tag} {@find_emerald}" on break of gold ore: loop all players: if {xraygold.%loop-player%} is true: send "{@tag} {@find_gold}" on break of iron ore: loop all players: if {xrayiron.%loop-player%} is true: send "{@tag} {@find_iron}" on break of lapis lazuli ore: loop all players: if {xraylapis.%loop-player%} is true: send "{@tag} {@find_lapis}" on break of coal ore: loop all players: if {xraycoal.%loop-player%} is true: send "{@tag} {@find_coal}" on break of redstone ore: loop all players: if {xrayredstone.%loop-player%} is true: send "{@tag} {@find_redstone}" on break of ancient debris: loop all players: if {xrayancient.%loop-player%} is true: send "{@tag} {@find_ancient}"