Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click:
- if player's tool is {menu}:
- open chest with 3 row named "&a&lプレイヤーメニュー" to player
- set slot 8 of player's current inventory to yellow stained glass pane named "&e&lサウンドオプション"
- set slot 10 of player's current inventory to compass named "&a&lテレポート"
- set slot 12 of player's current inventory to chest named "&6&lインベントリ"
- set slot 14 of player's current inventory to iron chestplate named "&b&Lステータス"
- set slot 16 of player's current inventory to lava bucket named "&4&lゴミ箱"
- if player's tool is {invekye}:
- if {ainves.%player%} <= 3 :
- add 1 to {ainves.%player%}
- remove {invekye} from player
- send "&b追加インベントリ%{ainves.%player%}%を開放しました"
- stop
- if {ainves.%player%} >= 4 :
- send "&4これ以上解放できません"
- if player's tool is {soundkye}:
- set {sou.op.%player%} to 1
- remove {soundkye} from player
- send "&eサウンドオプションの機能を開放しました"
- on inventory click:
- #======================================================================================
- if name of player's current inventory contain "&a&lテレポート":
- cancel event
- if name of player's current inventory contain "&a&lプレイヤーメニュー":
- cancel event
- if name of clicked item is "&7&lサウンドオプション":
- send "&4解放されていません"
- if name of clicked item is "&e&lサウンドオプション":
- make player execute command "/soundop"
- if name of clicked item is "&a&lテレポート":
- make player execute command "/rpgtp"
- if name of clicked item is "&6&lインベントリ":
- make player execute command "/pinve"
- if name of clicked item is "&b&Lステータス":
- send "&4未実装"
- if name of clicked item is "&4&lゴミ箱":
- open chest with 3 row named "&4&lゴミ箱" to player
- if name of player's current inventory contain "&6&lインベントリ一覧":
- cancel event
- if name of clicked item is "&6&lインベントリⅠ":
- make player execute command "/inv1"
- if name of clicked item is "&6&lインベントリⅡ":
- make player execute command "/inv2"
- if name of clicked item is "&6&lインベントリⅢ":
- make player execute command "/inv3"
- if name of clicked item is "&6&lインベントリⅣ":
- make player execute command "/inv4"
- if name of clicked item is "&a追加インベントリへ":
- make player execute command "/pinve2"
- if name of player's current inventory contain "&6&l追加インベントリ一覧":
- cancel event
- if name of clicked item is "&6&l追加インベントリⅠ":
- make player execute command "/inv1z"
- if name of clicked item is "&6&l追加インベントリⅡ":
- make player execute command "/inv2z"
- if name of clicked item is "&6&l追加インベントリⅢ":
- make player execute command "/inv3z"
- if name of clicked item is "&6&l追加インベントリⅣ":
- make player execute command "/inv4z"
- command /pinve:
- trigger:
- open chest with 3 row named "&6&lインベントリ一覧" to player
- set slot 10 of player's current inventory to chest named "&6&lインベントリⅠ"
- set slot 12 of player's current inventory to chest named "&6&lインベントリⅡ"
- set slot 14 of player's current inventory to chest named "&6&lインベントリⅢ"
- set slot 16 of player's current inventory to chest named "&6&lインベントリⅣ"
- set slot 26 of player's current inventory to arrow named "&a追加インベントリへ"
- command /pinve2:
- trigger:
- open chest with 3 row named "&6&l追加インベントリ一覧" to player
- set slot 10 of player's current inventory to ender chest named "&6&l追加インベントリⅠ" if {ainves.%player%} >= 1
- set slot 12 of player's current inventory to ender chest named "&6&l追加インベントリⅡ" if {ainves.%player%} >= 2
- set slot 14 of player's current inventory to ender chest named "&6&l追加インベントリⅢ" if {ainves.%player%} >= 3
- set slot 16 of player's current inventory to ender chest named "&6&l追加インベントリⅣ" if {ainves.%player%} >= 4
- command /inv1:
- trigger:
- set {_1} to chest with 4 row named "&6&lインベントリⅠ"
- loop {1::%player%::*}:
- set slot loop-index parsed as number - 1 of {_1} to loop-value
- open {_1} to player
- command /inv2:
- trigger:
- set {_2} to chest with 4 row named "&6&lインベントリⅡ"
- loop {2::%player%::*}:
- set slot loop-index parsed as number - 1 of {_2} to loop-value
- open {_2} to player
- command /inv3:
- trigger:
- set {_3} to chest with 4 row named "&6&lインベントリⅢ"
- loop {3::%player%::*}:
- set slot loop-index parsed as number - 1 of {_3} to loop-value
- open {_3} to player
- command /inv4:
- trigger:
- set {_4} to chest with 4 row named "&6&lインベントリⅣ"
- loop {4::%player%::*}:
- set slot loop-index parsed as number - 1 of {_4} to loop-value
- open {_4} to player
- command /inv1z:
- trigger:
- if {ainves.%player%} >= 1:
- set {_a1} to chest with 4 row named "&6&l追加インベントリⅠ"
- loop {a1::%player%::*}:
- set slot loop-index parsed as number - 1 of {_a1} to loop-value
- open {_a1} to player
- if {ainves.%player%} <= 0:
- send "&4追加インベントリⅠを所持していません"
- command /inv2z:
- trigger:
- if {ainves.%player%} >= 2:
- set {_a2} to chest with 4 row named "&6&l追加インベントリⅡ"
- loop {a2::%player%::*}:
- set slot loop-index parsed as number - 1 of {_a2} to loop-value
- open {_a2} to player
- if {ainves.%player%} <= 1:
- send "&4追加インベントリⅡを所持していません"
- command /inv3z:
- trigger:
- if {ainves.%player%} >= 3:
- set {_a3} to chest with 4 row named "&6&l追加インベントリⅢ"
- loop {a3::%player%::*}:
- set slot loop-index parsed as number - 1 of {_a3} to loop-value
- open {_a3} to player
- if {ainves.%player%} <= 2:
- send "&4追加インベントリⅢを所持していません"
- command /inv4z:
- trigger:
- if {ainves.%player%} >= 4:
- set {_a4} to chest with 4 row named "&6&l追加インベントリⅣ"
- loop {a4::%player%::*}:
- set slot loop-index parsed as number - 1 of {_a4} to loop-value
- open {_a4} to player
- if {ainves.%player%} <= 3:
- send "&4追加インベントリⅣを所持していません"
- command /rpgtp:
- trigger:
- open chest with 5 row named "&a&lテレポート" to player
- set slot 10 of player's current inventory to ender eye named "&3&l○○へテレポート" with lore "&f説明文"
- set slot 12 of player's current inventory to ender eye named "&3&l○○へテレポート" with lore "&f説明文"
- set slot 14 of player's current inventory to ender eye named "&3&l○○へテレポート" with lore "&f説明文"
- set slot 16 of player's current inventory to ender eye named "&3&l○○へテレポート" with lore "&f説明文"
- set slot 28 of player's current inventory to ender eye named "&3&l○○へテレポート" with lore "&f説明文"
- set slot 30 of player's current inventory to ender eye named "&3&l○○へテレポート" with lore "&f説明文"
- set slot 32 of player's current inventory to ender eye named "&3&l○○へテレポート" with lore "&f説明文"
- set slot 34 of player's current inventory to ender eye named "&3&l○○へテレポート" with lore "&f説明文"
- on join:
- add 0 to {ainves.%player%}
- add 0 to {sou.op.%player%}
- on inventory close:
- if name of event-inventory is "&6&lインベントリⅠ":
- loop 36 times:
- set {1::%player%::%loop-number%} to slot loop-number - 1 of event-inventory
- if name of event-inventory is "&6&lインベントリⅡ":
- loop 36 times:
- set {2::%player%::%loop-number%} to slot loop-number - 1 of event-inventory
- if name of event-inventory is "&6&lインベントリⅢ":
- loop 36 times:
- set {3::%player%::%loop-number%} to slot loop-number - 1 of event-inventory
- if name of event-inventory is "&6&lインベントリⅣ":
- loop 36 times:
- set {4::%player%::%loop-number%} to slot loop-number - 1 of event-inventory
- if name of event-inventory is "&6&l追加インベントリⅠ":
- loop 36 times:
- set {a1::%player%::%loop-number%} to slot loop-number - 1 of event-inventory
- if name of event-inventory is "&6&l追加インベントリⅡ":
- loop 36 times:
- set {a2::%player%::%loop-number%} to slot loop-number - 1 of event-inventory
- if name of event-inventory is "&6&l追加インベントリⅢ":
- loop 36 times:
- set {a3::%player%::%loop-number%} to slot loop-number - 1 of event-inventory
- if name of event-inventory is "&6&l追加インベントリⅣ":
- loop 36 times:
- set {a4::%player%::%loop-number%} to slot loop-number - 1 of event-inventory
- command /invekye:
- permission: op
- trigger:
- set {invekye} to player's tool
- command /soundkye:
- permission: op
- trigger:
- set {soundkye} to player's tool
- command /invekyegive:
- permission: op
- trigger:
- give {invekye} to player
- command /invevreset:
- permission: op
- trigger:
- set {ainves.%player%} to 0
- command /setmenu:
- permission: op
- trigger:
- set {menu} to player's tool
- command /givemenu:
- permission: op
- trigger:
- give {menu} to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement