View difference between Paste ID: Gv03uMzz and GnjjmbjC
SHOW: | | - or go back to the newest paste.
1
on join:
2
 teleport player to {tp.lobby}
3
 remove all items from player's inventory
4
 set the join message to "<gold><bold>[栄光の架橋]%player%さんがサーバーに参加しました!"
5
 execute command "/tabsetting %player% 0"
6
 delete {shot.%player%}
7
8
on quit:
9
 set the quit message to "<gold><bold>[栄光の架橋]%player%さんがサーバーから退出しました"
10
11
on first join:
12
 teleport player to {tp.tuto}
13
14-
on rightclick with stick:
14+
15-
 name of player's tool contains "<red><bold>レーザーポインター":
15+
16
  cancel event
17-
  set {_num} to 0.5
17+
18-
  set {_Particle} to location of the block {_num} meter in front of player's head
18+
19-
  loop 500 times:
19+
20-
   show 1 redstone particles at {_Particle} with color 200, 0, 0 offset by 0, 0, 0
20+
21-
   set {_num} to {_num} + 0.3
21+
22-
   set {_Particle} to location of the block {_num} meter infront of player's head
22+
23-
   if the block {_num} meter infront of player's head is not air:
23+
24-
    stop loop
24+
25
 set {plz} to floor(z-coordinate of location of shooter)
26
 {plx} is more than -23
27
 {plx} is less than 35
28
 {ply} is more than 68
29
 {ply} is less than 92
30
 {plz} is more than -30
31
 {plz} is less than -24
32
 cancel event
33
34
command /close:
35
 permission: op
36
 trigger:
37
  execute command "/fill 85 93 -27 85 91 -26 minecraft:glass"
38
  execute command "/fill 85 93 -23 85 91 -22 minecraft:glass"
39
40
command /opend:
41
 permission: op
42
 trigger:
43
  execute command "/fill 85 93 -27 85 91 -26 minecraft:air"
44
  execute command "/fill 85 93 -23 85 91 -22 minecraft:air"
45
46-
command /vip <player>:
46+
47
 permission: op
48
 trigger:
49-
  set {vip.%arg%} to 1
49+
50
  message "チュートリアルの場所を%{tp.lobby}%に設定しました"
51-
command /nonvip <player>:
51+
52
command /setlob:
53
 permission: op
54-
  delete {vip.%arg%}
54+
55
  set {tp.lobby} to location of player
56
  message "ロビーの場所を%{tp.lobby}%に設定しました"
57
58
command /setred:
59
 permission: op
60
 trigger:
61
  set {tp.red} to location of player
62
  message "赤チームの場所を%{tp.red}%に設定しました"
63
64
command /setblue:
65
 permission: op
66
 trigger:
67
  set {tp.blue} to location of player
68
  message "青チームの場所を%{tp.blue}%に設定しました"
69
70
command /setshot:
71
 permission: op
72
 trigger:
73
  set {tp.shot} to location of player
74
  message "射撃主の場所を%{tp.shot}%に設定しました"
75
 
76
command /tabsetting <player> <int>:
77
    permission: owner.sk
78
    trigger:
79
        set {tab.%arg 1%} to arg 2
80
81
command /pteam <player> [<text>]:
82
 permission: op
83
 trigger:
84
  if arg 2 is "red":
85
   set {shot.%arg 1%} to arg 2 
86
   execute command "/tabsetting %arg 1% 1"
87
  else if arg 2 is "blue":
88
   set {shot.%arg 1%} to arg 2 
89
   execute command "/tabsetting %arg 1% 2"
90
91
on walking on red wool:
92
 if {shot.%player%} is "blue":
93
  teleport player to {tp.blue}
94
95
on walking on blue wool:
96
 if {shot.%player%} is "red":
97
  teleport player to {tp.red}
98-
command /setarea1:
98+
99
on walking on magenta concrete:
100
 if {shot.%player%} is "red":
101-
  set {area1} to location of player
101+
  teleport player to {tp.red}
102-
  message "エリア1の場所を%{area1}%に設定しました"
102+
103
  teleport player to {tp.blue}
104-
command /setarea2:
104+
105
on walking on red concrete:
106
 if {state} is 1:
107-
  set {area2} to location of player
107+
108-
  message "エリア2の場所を%{area2}%に設定しました"
108+
109
   set {point.blue} to {point.blue} + 1
110
   broadcast "&b青&6チームの%player%さんがゴールしました!"
111
   execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 11"
112
113
on walking on blue concrete:
114
 if {state} is 1:
115
  if {shot.%player%} is "red":
116
   teleport player to {tp.red}
117
   set {point.red} to {point.red} + 1
118
   broadcast "&c赤&6チームの%player%さんがゴールしました!"
119
   execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 14"
120
121
on walking on light blue glass:
122
 if {shot.%player%} is "red":
123
  execute command "/tp %player% -19 85 -27"
124
125
on walking on blue stained glass:
126
 if {shot.%player%} is "red":
127-
  if {tp.%player%} is set:
127+
128-
   teleport player to {tp.%player%}
128+
129-
  else: 
129+
130
 if {shot.%player%} is "blue":
131
  execute command "/tp %player% 31 85 -27"
132
133
on walking on red glass block:
134-
  if {tp.%player%} is set:
134+
135-
   teleport player to {tp.%player%}
135+
136
137
on walking on orange glass:
138
 if {shot.%player%} is "blue":
139
  execute command "/tp %player% 28 75 -13"
140
141-
  if {tp.%player%} is set:
141+
142-
   teleport player to {tp.%player%}
142+
143
  execute command "/tp %player% 30 75 -27"
144
145
on walking on dark green glass:
146-
  if {tp.%player%} is set:
146+
147-
   teleport player to {tp.%player%}
147+
148
149
on walking on light green stained glass block:
150
 if {shot.%player%} is "red":
151
  execute command "/tp %player% -19 75 -27"
152
153
on walking on light blue wool:
154
 if {state} is 0:
155
  if {shot.%player%} is not "blue":
156
   execute command "/pteam %player% blue"
157
   send "&6あなたは&b青&6チームです!" to player
158
159
on walking on pink wool block:
160
 if {state} is 0:
161
  if {shot.%player%} is not "red":
162
   execute command "/pteam %player% red"
163
   send "&6あなたは&c赤&6チームです!" to player
164
165
command /cc:
166
 permission: op
167
 trigger:
168-
 if {game} is "eiko":
168+
169
170-
   execute command "/tp %player% -19 85 -27"
170+
171-
 else if {game} is "paint":
171+
172
 blue: blue wool
173
 air: air
174
175
on projectile hit:
176
 kill event-entity
177
 set {_hitx} to floor(x-coordinate of location of projectile)
178
 set {_hity} to floor(y-coordinate of location of projectile)
179-
 if {game} is "eiko":
179+
180
 set {_hitpoint} to location of projectile
181-
   execute command "/tp %player% 31 85 -27"
181+
182-
 else if {game} is "paint":
182+
 {_hitx} is more than -17
183
 {_hitx} is less than 29
184
 {_hity} is more than 69
185
 {_hity} is less than 90
186
 {_hitz} is more than -29
187
 {_hitz} is less than -25
188
 if {shot.%shooter%} is "red":
189
  if {_block} is blue wool:
190
   set the block at {_block} to {@air}
191
  else if {_block} is air:
192
   set the block at {_block} to {@red}
193
  else:
194-
 if {game} is "eiko":
194+
   set block at {_hitpoint} to {@red}
195
196-
   execute command "/tp %player% 30 75 -27"
196+
 else if {shot.%shooter%} is "blue":
197-
 else if {game} is "paint":
197+
  if {_block} is red wool block:
198
   set the block at {_block} to {@air}
199
  else if {_block} is air:
200
   set the block at {_block} to {@blue}
201
  else:
202
   set block at {_hitpoint} to {@blue}
203
204
command /team:
205-
 if {game} is "eiko":
205+
206
  set {red} and {blue} to 0
207-
   execute command "/tp %player% -19 75 -27"
207+
208-
 else if {game} is "paint":
208+
209
    add 1 to {blue}
210
    set {shot.%loop-player%} to "blue"
211
    send "&6あなたは&b青&6チームです!" to loop-player
212
    execute command "/tabsetting %loop-player% 2"
213
   else:
214
    add 1 to {red}
215
    set {shot.%loop-player%} to "red"
216
    send "&6あなたは&c赤&6チームです!" to loop-player
217
    execute command "/tabsetting %loop-player% 1"
218
   wait a tick
219
220
every 2 seconds:
221
 loop all players:
222
  set loop-player's food level to 10
223-
on walking on emerald block:
223+
224
   set loop-player's tab list name to "<white>%loop-player%"
225-
  set {tp.%player%} to location of player
225+
226-
  message "&e&lスポーンポイントを設定しました"
226+
   set loop-player's tab list name to "<red>%loop-player%"
227
  else if {tab.%loop-player%} is 2:
228-
on walking on diamond block:
228+
   set loop-player's tab list name to "<blue>%loop-player%"
229
  if {state} is 1:
230-
  set {tp.%player%} to location of player
230+
   if {shot.%loop-player%} is "red" or "blue":
231-
  message "&e&lスポーンポイントを設定しました"
231+
    execute command "/give %loop-player% minecraft:arrow 1 0"
232
233
on death:
234
 set player's health to player's max health
235
236
command /eiko [<text>] [<int>]:
237
 permission: op
238-
command /cc2:
238+
239
  if arg 1 is "start":
240
   broadcast "&6&lゲームを始めます!"
241-
  execute command "/fill 82 100 -4 -71 94 -4 air"
241+
   set {state} to 1
242
   execute command "/count %arg 2%"
243
   delete {point.red}
244
   delete {point.blue}
245
   set {point.red} to 0
246
   set {point.blue} to 0
247
   loop all players: 
248-
 wait 1 tick
248+
249
     teleport loop-player to {tp.red}
250
     execute command "/gamemode 2 %loop-player%"
251
     execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1}"
252
     execute command "/give %loop-player% minecraft:arrow 5 0"
253
     execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
254
    else if {shot.%loop-player%} is "blue":
255
     teleport loop-player to {tp.blue}
256-
  {_hitx} is more than 71
256+
257-
  {_hitx} is less than 82
257+
     execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1}"
258-
  {_hity} is more than 90
258+
     execute command "/give %loop-player% minecraft:arrow 5 0"
259-
  {_hity} is less than 100
259+
260-
  {_hitz} is more than -7
260+
     
261-
  {_hitz} is less than -3
261+
  if arg 1 is "stop":
262-
  if {shot.%shooter%} is "red":
262+
   broadcast "&6&lゲームを終了します"
263-
   loop blocks in radius 1 around projectile:
263+
   set {state} to 0
264-
    if loop-block is blue wool:
264+
265-
     set loop-block to air
265+
    teleport loop-player to {tp.lobby}
266-
     stop
266+
    execute command "/gamemode 2 %loop-player%"
267-
    else if {_block} is air:
267+
268-
     set the block at {_block} to {@red}
268+
    delete {shot.%loop-player%}
269-
    else:
269+
    execute command "/tabsetting %loop-player% 0"
270-
     set block at {_hitpoint} to {@red}
270+
   execute command "/opend"
271
   broadcast "&c赤&6チームの得点は、&c%{point.red}%点です!"
272-
  else if {shot.%shooter%} is "blue":
272+
273-
   loop blocks in radius 1 around projectile:
273+
274-
    if loop-block is red wool block:
274+
275-
     set loop-block to air
275+
276-
     stop
276+
277-
    else if {_block} is air:
277+
278-
     set the block at {_block} to {@blue}
278+
279-
    else:
279+
   delete {point.red}
280-
     set block at {_hitpoint} to {@blue}
280+
   delete {point.blue}
281
282-
 else if {state} is 1:
282+
283-
  {_hitx} is more than -17
283+
284-
  {_hitx} is less than 29
284+
285-
  {_hity} is more than 69
285+
286-
  {_hity} is less than 90
286+
287-
  {_hitz} is more than -29
287+
288-
  {_hitz} is less than -25
288+
289-
  if {shot.%shooter%} is "red":
289+
290-
   loop blocks in radius 1 around projectile:
290+
291-
    if loop-block is blue wool:
291+
292-
     set loop-block to air
292+
293-
     stop
293+
294-
   if {_block} is air:
294+
295-
    set the block at {_block} to {@red}
295+
296
      send "&c%player%: %message%" to loop-player
297-
    set block at {_hitpoint} to {@red}
297+
298
     if {shot.%loop-player%} is "blue":
299-
  else if {shot.%shooter%} is "blue":
299+
300-
   loop blocks in radius 1 around projectile:
300+
301-
    if loop-block is red wool block:
301+
302-
     set loop-block to air
302+
303-
     stop
303+
304-
   if {_block} is air:
304+
305-
    set the block at {_block} to {@blue}
305+
306
307-
    set block at {_hitpoint} to {@blue}
307+
308
 permission: op
309
 trigger:
310
  set {_countdown} to arg
311
  loop arg times:
312
   wait 1 seconds
313
   set {_countdown} to {_countdown} - 1
314
   set {time} to {_countdown}
315
   execute command "/title @a actionbar {""text"":""&e&l残り時間:%{time}%""}"
316
  execute command "/title @a actionbar {""text"":""&6&l終了!""}"
317
  execute command "/eiko stop"