SHOW:
|
|
- or go back to the newest paste.
1 | command /home <text> [<number>]: | |
2 | trigger: | |
3 | if arg-1 is "select": | |
4 | open chest with 1 rows named "&6Home Select" to player | |
5 | if {%player%.Home1} is location: | |
6 | - | format slot 2 of player with 1 of oak log named "%player%.Home1" to run [make player execute command "home menu 1"] |
6 | + | format slot 2 of player with 1 of any_oak_wooden_logs_item named "%player%.Home1" to run [make player execute command "home menu 1"] |
7 | else: | |
8 | format slot 2 of player with 1 of barrier named "&cHomeを作成してください" to run [message "&c/home createでHomeをセットしてください。"] | |
9 | if arg-1 is "create": | |
10 | if arg-2 is 1: | |
11 | set {%player%.Home1} to location of player | |
12 | - | message "Home1を現在地点にセットしました" |
12 | + | message "Home1を現在地点にセットしました" |
13 | if arg-1 is "teleport": | |
14 | if arg-2 is 1: | |
15 | teleport player to {%player%.Home1} | |
16 | if arg-1 is "coord": | |
17 | if arg-2 is 1: | |
18 | message "Home1の座標は%{%player%.Home1}%です" | |
19 | if arg-1 is "delete": | |
20 | if arg-2 is 1: | |
21 | clear {%player%.Home1} | |
22 | message "Home1を削除しました" | |
23 | if arg-1 is "menu": | |
24 | if arg-2 is 1: | |
25 | open chest with 1 rows named "&6Home Menu" to player | |
26 | if {%player%.Home1} is location: | |
27 | - | format slot 1 of player with 1 of white wool named "teleport" to run [make player execute command "home teleport 1"] |
27 | + | format slot 1 of player with 1 of oak_wooden_plank named "teleport" to run [make player execute command "home teleport 1"] |
28 | - | format slot 1 of player with 2 of white wool named "coord" to run [make player execute command "home coord 1"] |
28 | + | format slot 3 of player with 1 of oak_wooden_plank named "coord" to run [make player execute command "home coord 1"] |
29 | - | format slot 1 of player with 3 of white wool named "delete" to run [make player execute command "home delete 1"] |
29 | + | format slot 5 of player with 1 of oak_wooden_plank named "delete" to run [make player execute command "home delete 1"] |
30 | else: | |
31 | message "&c/menu createでHomeをセットしてください。" | |
32 | ||
33 | command /wtfitem: | |
34 | trigger: | |
35 | message "&7Your tool is &6%player's tool%&7." |