SHOW:
|
|
- or go back to the newest paste.
1 | on rightclick: | |
2 | block is a sign | |
3 | line 1 of clicked block is "==========" | |
4 | line 2 of clicked block is "&4checkpoint" | |
5 | line 3 of clicked block is "&e[rightclick]" | |
6 | line 4 of clicked block is "==========" | |
7 | player is on ground | |
8 | set {checkpoint.%player%.%world%} to location of player | |
9 | message "&6チェックポイントを設定しました!" | |
10 | - | play "NOTE_PLING" specifically to player with pitch 2 and volume 1 |
10 | + | |
11 | - | log "%player% clicked checkpoint sign at %location of player% in %world%" to "ckeckpoint/checkpoint.log" |
11 | + | |
12 | ||
13 | on rightclick: | |
14 | block is a sign | |
15 | line 1 of clicked block is "==========" | |
16 | line 2 of clicked block is "&4checkpoint" | |
17 | line 3 of clicked block is "&9[rightclick]" | |
18 | line 4 of clicked block is "==========" | |
19 | set {checkpoint.%player%.%world%} to location of clicked block | |
20 | message "&6チェックポイントを設定しました!" | |
21 | if player has permission "skript.admin": | |
22 | message "&7Location of block" | |
23 | - | play "NOTE_PLING" specifically to player with pitch 2 and volume 1 |
23 | + | |
24 | - | log "%player% clicked checkpoint sign at %location of clicked block% in %world%" to "ckeckpoint/checkpoint.log" |
24 | + | |
25 | block is a sign | |
26 | line 1 of clicked block is "==========" | |
27 | line 2 of clicked block is "&4checkpoint" | |
28 | line 3 of clicked block is "&a[rightclick]" | |
29 | line 4 of clicked block is "==========" | |
30 | set {checkpoint.%player%.%world%} to location of player | |
31 | message "&6チェックポイントを設定しました!" | |
32 | if player has permission "skript.admin": | |
33 | message "&7Location of player" | |
34 | ||
35 | on rightclick with fire charge: | |
36 | - | play "NOTE_PLING" specifically to player with pitch 2 and volume 1 |
36 | + | |
37 | - | log "%player% clicked checkpoint sign at %location of player% in %world%" to "ckeckpoint/checkpoint.log" |
37 | + | |
38 | stop | |
39 | if {checkpoint.%player%.%world%} is set: | |
40 | teleport player to {checkpoint.%player%.%world%} | |
41 | else: | |
42 | message "&cチェックポイントが設定されていません!" | |
43 | ||
44 | on sign change: | |
45 | line 1 is "-" or "ー" | |
46 | set line 2 to "&4checkpoint" | |
47 | set line 3 to "&e[rightclick]" | |
48 | set line 4 to "==========" | |
49 | set line 1 to "==========" | |
50 | ||
51 | on sign change: | |
52 | line 1 is "--" or "ーー" | |
53 | set line 2 to "&4checkpoint" | |
54 | set line 3 to "&9[rightclick]" | |
55 | set line 4 to "==========" | |
56 | set line 1 to "==========" | |
57 | ||
58 | on sign change: | |
59 | line 1 is "^" or "^" | |
60 | set line 2 to "&4checkpoint" | |
61 | set line 3 to "&a[rightclick]" | |
62 | set line 4 to "==========" | |
63 | set line 1 to "==========" | |
64 | ||
65 | on walking on normal quartz block: | |
66 | player's gamemode is adventure or survival | |
67 | if {checkpoint.%player%.%world%} is not set: | |
68 | teleport player to block at world's spawn point | |
69 | message "&cチェックポイントが設定されていません!スポーンへTPされました!" | |
70 | else: | |
71 | teleport player to {checkpoint.%player%.%world%} | |
72 | ||
73 | command /cpd: | |
74 | description: Delete <player>'s checkpoint | |
75 | executable by: players | |
76 | trigger: | |
77 | delete {checkpoint.%player%.%world%} | |
78 | message "&cチェックポイントが削除されました。" | |
79 | ||
80 | on walking on block of coal: | |
81 | player's gamemode is adventure or survival | |
82 | delete {checkpoint.%player%.%world%} | |
83 | teleport player to block at world's spawn point | |
84 | message "&cチェックポイント削除。スポーンへTPされました。" | |
85 | ||
86 | command /adcps: | |
87 | description: Set player's ckeckpoint | |
88 | executable by: players | |
89 | trigger: | |
90 | player has permission "skript.admin" | |
91 | set {checkpoint.%player%.%world%} to location of player | |
92 | message "&6チェックポイントを設定しました!" | |
93 | play raw sound "note.pling" at player with pitch 2 volume 1 | |
94 | ||
95 | command /item: | |
96 | trigger: | |
97 | if player do not have fire charge named "&r&6Go to checkpoint": | |
98 | give fire charge named "&r&6Go to checkpoint" to player | |
99 | if player do not have slimeball named "&r&6Go to spawn point": | |
100 | give slimeball named "&r&6Go to spawn point" to player | |
101 | ||
102 | command /cp: | |
103 | aliases: checkpoint | |
104 | trigger: | |
105 | if {checkpoint.%player%.%world%} is not set: | |
106 | message "&cチェックポイントが設定されていません!" | |
107 | else: | |
108 | teleport player to {checkpoint.%player%.%world%} | |
109 | ||
110 | on damage: | |
111 | y-coordinate of victim is less than 0 | |
112 | cancel event | |
113 | if {checkpoint.%victim%.%world%} is not set: | |
114 | teleport victim to block at world's spawn point | |
115 | else: | |
116 | teleport victim to {checkpoint.%victim%.%world%} | |
117 | ||
118 | command /cptp <text> [<world>]: | |
119 | permission: skript.admin | |
120 | trigger: | |
121 | if arg 2 is not set: | |
122 | if {checkpoint.%arg 1%.%world%} is not set: | |
123 | message "checkpoint is not set" | |
124 | else: | |
125 | teleport player to {checkpoint.%arg 1%.%world%} | |
126 | else: | |
127 | if {checkpoint.%arg 1%.%arg 2%} is not set: | |
128 | message "checkpoint is not set" | |
129 | else: | |
130 | teleport player to {checkpoint.%arg 1%.%arg 2%} |