Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
5.2 kB
4
Indexable
Never
effect (open|show|create) [(new|a new)] (animated|fancy) inv[entory] (with size|sized) %int% (with name|named|with title|titled) %string% (with id|with tag|tagged) %string% (to|for) %player%:
    trigger:
        {inventoryopen::%uuid of expr-4%} isn't true
        set metadata tag expr-3 of expr-4 to chest inventory with expr-1 rows named formatted expr-2
        open (metadata tag expr-3 of expr-4) to expr-4
        set {inventoryopen::%uuid of expr-4%} to true
        set {_n} to 0
        loop 9 times:
            if expr-1 = 3:
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                remove 17 from {_n}
            else if expr-1 = 5:
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                remove 35 from {_n}
            else if expr-1 = 6:
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                remove 44 from {_n}
            
            wait 1 tick
            play sound "block.calcite.break" with pitch -2 to expr-4
        wait 1 tick
        play sound "block.note_block.bell" to expr-4
effect (open|show|create) [(new|a new)] [(regular|plain)] inv[entory] (with size|sized) %int% (with name|named|with title|titled) %string% (with id|with tag|tagged) %string% (to|for) %player%:
    trigger:
        {inventoryopen::%uuid of expr-4%} isn't true
        set metadata tag expr-3 of expr-4 to chest inventory with expr-1 rows named formatted expr-2
        open (metadata tag expr-3 of expr-4) to expr-4
        set {inventoryopen::%uuid of expr-4%} to true
        set {_n} to 0
        loop 9 times:
            if expr-1 = 3:
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                remove 17 from {_n}
            else if expr-1 = 5:
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                remove 35 from {_n}
            else if expr-1 = 6:
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                add 9 to {_n}
                set slot {_n} of metadata tag expr-3 of expr-4 to gray stained glass pane named " "
                remove 44 from {_n}
        wait 1 tick
        play sound "block.note_block.bell" to expr-4
Leave a Comment