View difference between Paste ID: YS57cDwG and SATqkUsb
SHOW: | | - or go back to the newest paste.
1
#===============================================
2-
#/warpコマンド
2+
#チェックポイントへTP
3
#===============================================
4-
command /warp <number>:
4+
on rightclick holding a fire_charge:
5-
    usage: /warp <1|2|3> ... 設定したワープポイントへワープします
5+
	teleport player to {%player%-athletic-checkpoint}
6-
    trigger:
6+
7-
        if arg 1 is 1:
7+
8-
            if {%player%-warppoint-1} is not set:
8+
#チェックポイント設定
9-
                message "&a&lワープポイント1&eがセットされていません!"
9+
10-
                stop
10+
on right click on sign:
11-
            teleport player to {%player%-warppoint-1}
11+
	set {%player%-athletic-checkpoint} to location of player
12-
            message "&a&lワープポイント1&eへテレポートしました"
12+
	message "&6&nチェックポイント&eを設定しました"
13-
        else if arg 1 is 2:
13+
	play sound "block.note.pling" with pitch 1.5 at player
14-
            if {%player%-warppoint-2} is not set:
14+
	play sound "block.note.snare" with pitch 1 at player
15-
                message "&a&lワープポイント2&eがセットされていません!"
15+
	play sound "block.note.basedrum" with pitch 1 at player
16-
                stop
16+
	wait 2 minecraft ticks
17-
            teleport player to {%player%-warppoint-2}
17+
	play sound "block.note.pling" with pitch 1 at player
18-
            message "&a&lワープポイント2&eへテレポートしました"
18+
	play sound "block.note.snare" with pitch 1 at player
19-
        else if arg 1 is 3:
19+
	wait 2 minecraft ticks
20-
            if {%player%-warppoint-3} is not set:
20+
	play sound "block.note.pling" with pitch 1.5 at player
21-
                message "&a&lワープポイント3&eがセットされていません!"
21+
	play sound "block.note.snare" with pitch 1 at player
22-
                stop
22+
	wait 2 minecraft ticks
23-
            teleport player to {%player%-warppoint-3}
23+
	play sound "block.note.pling" with pitch 2 at player
24-
            message "&a&lワープポイント3&eへテレポートしました"
24+
	play sound "block.note.snare" with pitch 0.5 at player
25-
 
25+
	play sound "block.note.basedrum" with pitch 1 at player
26
27-
#ジャンプ地点登録
27+
28
#チェックポイントに戻るブロック
29-
on rightclick on a piston:1:
29+
30-
    play sound "block.note.pling" at player
30+
on walking on sponge:
31-
    open chest with 1 rows named "&9&lSave WarpPoint" to player
31+
	teleport player to {%player%-athletic-checkpoint}