View difference between Paste ID: uUfER8Qc and iRGgaqYR
SHOW: | | - or go back to the newest paste.
1
command /home <text> [<number>]:
2
    trigger:
3-
        message "&7Your tool is &6%player's tool%&7."
3+
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"]
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-
                format slot 2 of player with 1 of oak log named "{%player%.Home1}" to run [make player execute command "home menu 1"]
10+
11
                set {%player%.Home1} to location of player    
12-
                format slot 2 of player with 1 of barrier named "&cHomeを作成してください" to run [message "&c/menu createでHomeをセットしてください。"]
12+
                message "Home1を現在地点にセットしました"
13
        if arg-1 is "teleport":
14
            if arg-2 is 1:
15
                teleport player to {%player%.Home1}
16-
                message "Home1をこの地点にセットしました"    
16+
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の座標は{%player%.Home1}です"
22+
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"]
28
                    format slot 1 of player with 2 of white wool 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"]
30
                else:
31
                    message "&c/menu createでHomeをセットしてください。"
32
33
command /wtfitem:
34
    trigger:
35
        message "&7Your tool is &6%player's tool%&7."