View difference between Paste ID: WpSD20HV and 16xTGVSt
SHOW: | | - or go back to the newest paste.
1
on right click on ender chest:
2
    cancel event
3
    block over the event-block is air
4
    player is not sneaking
5-
    play sound "block.enderchest.open" with volume 0.5 and pitch 1 at player
5+
    command "/playsound minecraft:block.enderchest.open master %player%"
6
    open chest with 6 row named "&8ストレージ選択 &7- &d&l&o[&8&o拡張エンダーチェスト&d&l&o]" to player
7
    loop 54 times:
8
        set slot loop-number - 1 of player's current inventory to chest named "&fストレージ %loop-number%" with lore "&7&o%{EnderChest.%loop-number%.1.%player%}%","&7&o%{EnderChest.%loop-number%.2.%player%}%" ,"&7&o%{EnderChest.%loop-number%.3.%player%}%" and "&8&o..."
9
10
on inventory click:
11
    name of event-inventory is "&8ストレージ選択 &7- &d&l&o[&8&o拡張エンダーチェスト&d&l&o]"
12-
    play sound "block.enderchest.open" with volume 0.25 and pitch 2 at player
12+
    command "/playsound minecraft:block.enderchest.open master %player%"
13
    open chest with 6 row named "&8&lストレージ %clicked slot + 1% &7- &d&l&o[&8&o拡張エンダーチェスト&d&l&o]" to player
14
    loop 54 times:
15
        set slot loop-number - 1 of player's current inventory to {EnderChest.%clicked slot + 1%.%loop-number%.%player%}
16
17
on inventory close:
18
    if name of event-inventory is "&8ストレージ選択 &7- &d&l&o[&8&o拡張エンダーチェスト&d&l&o]":
19-
        play sound "block.enderchest.close" with volume 0.5 and pitch 1 at player
19+
        command "/playsound minecraft:block.enderchest.close master %player%"
20
        stop
21
    loop 54 times:
22
        name of event-inventory is "&8&lストレージ %loop-number% &7- &d&l&o[&8&o拡張エンダーチェスト&d&l&o]"
23-
        play sound "block.enderchest.close" with volume 0.25 and pitch 2 at player
23+
        command "/playsound minecraft:block.enderchest.close master %player%"
24
        loop 54 times:
25
            set {EnderChest.%loop-number-1%.%loop-number-2%.%player%} to slot -1 + loop-number-2 of player's current inventory
26
        wait a tick
27
        open chest with 6 row named "&8ストレージ選択 &7- &d&l&o[&8&o拡張エンダーチェスト&d&l&o]" to player
28
    loop 54 times:
29
        set slot loop-number - 1 of player's current inventory to chest named "&fストレージ %loop-number%" with lore "&7&o%{EnderChest.%loop-number%.1.%player%}%","&7&o%{EnderChest.%loop-number%.2.%player%}%" ,"&7&o%{EnderChest.%loop-number%.3.%player%}%" and "&8&o..."