variables: {serca::%player%} = false {chmurki::%player%} = false command /trials []: permission: trials.vip permission message: &7Zakup range &6VIP&7, aby otrzymac dostep do tej komendy trigger: if arg-1 is not set: open chest with 1 rows named "&6Trialsy" to the player set {otwieranie5:%player%} to false wait 3 ticks format slot 0 of player with 1 rose red named "&cSerca" with lore "&7Kliknij, aby wybrac" to close then run [make player execute command "/trials serca"] format slot 1 of player with 1 string named "&fChmurki" with lore "&7Kliknij, aby wybrac" to close then run [make player execute command "/trials chmurki"] format slot 2 of player with 1 fire charge named "&6Ogien" with lore "&7Kliknij, aby wybrac" to close then run [make player execute command "/trials ogien"] format slot 3 of player with 1 slimeball named "&5Uderzenia krytyczne" with lore "&7Kliknij, aby wybrac" to close then run [make player execute command "/trials criticals"] format slot 4 of player with 1 player head named "&9Nutki " with lore "&7Kliknij, aby wybrac" to close then run [make player execute command "/trials nutki"] format slot 8 of player with 1 red wool named "&4Wylacz trialsy" to close then run [make player execute command "/trials off"] wait 2 real seconds set {otwieranie5::%player%} to true if arg-1 is "serca": if {serca::%player%} is true: send "&cPosiadasz na sobie ten trials" stop else: set {serca::%player%} to true send "&aWybrales efekt serc, gdy bedziesz chodzic serca beda podazac za toba&8!" stop if arg-1 is "chmurki": if {chmurki::%player%} is true: send "&cPosiadasz na sobie ten trials" stop else: set {chmurki::%player%} to true send "&aWybrales efekt chmurek, gdy bedziesz chodzic serca beda podazac za toba&8!" stop if arg-1 is "ogien": if {ogien::%player%} is true: send "&cPosiadasz na sobie ten trials" stop else: set {ogien::%player%} to true send "&aWybrales efekt ognia, gdy bedziesz chodzic serca beda podazac za toba&8!" stop if arg-1 is "criticals": if {criticals::%player%} is true: send "&cPosiadasz na sobie ten trials" stop else: set {criticals::%player%} to true send "&aWybrales efekt uderzen krytycznych, gdy bedziesz chodzic serca beda podazac za toba&8!" stop if arg-1 is "nutki": if {nutki::%player%} is true: send "&cPosiadasz na sobie ten trials" stop else: set {nutki::%player%} to true send "&aWybrales efekt nut, gdy bedziesz chodzic serca beda podazac za toba&8!" stop if arg-1 is "off": set {serca::%player%} to false set {nutki::%player%} to false set {criticals::%player%} to false set {chmurki::%player%} to false set {ogien::%player%} to false on any move: if {serca::%player%} is true: spawn 3 of particle heart:1 offset by 0, 0.5, 0 at player if {chmurki::%player%} is true: spawn 3 of particle cloud offset by 0, 0.5, 0 at player if {ogien::%player%} is true: spawn 5 of particle lava offset by 0, 0.5, 0 at player if {criticals::%player%} is true: spawn 5 of particle magic crit offset by 0, 0.5, 0 at player if {nutki::%player%} is true: spawn 5 of particle note:1 offset by 0, 0.5, 0 at player on rightclick a chest: if {otwieranie5::%player%} is false: cancel event send "zaczekaj 2 sekundy" on rightclick a trapped chest: if {otwieranie5::%player%} is false: cancel event send "zaczekaj 2 sekundy" on rightclick a ender chest: if {otwieranie5::%player%} is false: cancel event send "zaczekaj 2 sekundy"