SHOW:
|
|
- or go back to the newest paste.
1 | on rightclick holding a iron sword: | |
2 | loop all entities in radius 50 around player: | |
3 | loop-entity is not player | |
4 | loop-entity is alive | |
5 | add loop-entity to {_e::*} | |
6 | {_e::*} is set | |
7 | play sound "entity.enderdragon.growl" with volume 1 and pitch 3 at player for player | |
8 | loop 10 times: | |
9 | shoot a snowball from player at speed 0.1 | |
10 | add last shot snowball to {_p::*} | |
11 | add "{NoGravity:1}" to nbt of last shot snowball | |
12 | add "{Tags:[YUDOU]}" to nbt of last shot snowball | |
13 | push last shot snowball backwards at speed random number from 0.01 to 0.5 | |
14 | push last shot snowball to the left at speed random number from 0.01 to 0.5 | |
15 | push last shot snowball upwards at speed random number from 0.01 to 0.5 | |
16 | push last shot snowball to the right at speed random number from 0.01 to 0.5 | |
17 | push last shot snowball forwards at speed random number from 0.01 to 0.5 | |
18 | particles(last shot snowball) | |
19 | killHOSI(last shot snowball , 5 seconds) | |
20 | loop {_p::*}: | |
21 | push loop-value up at speed 0.03 | |
22 | particles(loop-value) | |
23 | wait tick | |
24 | loop {_e::*}: | |
25 | set maximum damage delay of loop-value to 0 tick | |
26 | subtract 7 from y-coordinate of {_e::%loop-index%} | |
27 | set {_n} to ceil(size of {_p::*} / size of {_e::*}) | |
28 | while {_e::*} is set: | |
29 | set {_en} to random element out of {_e::*} | |
30 | subtract {_en} from {_e::*} | |
31 | loop {_n} times: | |
32 | set {_pr} to random element out of {_p::*} | |
33 | subtract {_pr} from {_p::*} | |
34 | push({_pr} , {_en}) | |
35 | function push(e: entity , e1: location): | |
36 | loop 20 times: | |
37 | push {_e} (direction from {_e} to {_e1}) at speed 0.1 | |
38 | show 1 flame particles at {_e} offset by 0, 0, 0 with speed 0 | |
39 | wait tick | |
40 | function killHOSI(e: entity , n: timespan): | |
41 | wait {_n} | |
42 | kill {_e} | |
43 | function particles(e: entity): | |
44 | loop 50 times: | |
45 | show 1 flame particles at {_e} offset by 0, 0, 0 with speed 0 | |
46 | wait tick | |
47 | on projectile hit: | |
48 | type of event-projectile is snowball | |
49 | set {_t} to "%tag ""Tags"" of nbt of event-projectile%" | |
50 | replace all """" , "[" , "]" in {_t} with "" | |
51 | "%{_t}%" = "YUDOU" | |
52 | - | create a safe explosion of force 1 at the event-location |
52 | + | create a safe explosion of force 1 at the event-location |
53 | ||
54 | command /wand: | |
55 | trigger: | |
56 | give player a diamond hoe named "&bスパーク" | |
57 | ||
58 | on right click holding a diamond hoe: | |
59 | name of the player's tool is "&bスパーク": | |
60 | if player has diamond hoe named "&bスパーク" in hand: | |
61 | ||
62 | if target block is set: | |
63 | launch "BURST" firework at location above target block timed 0 coloured "blue" | |
64 | launch "BURST" firework at location above target block timed 0 coloured "yellow" | |
65 | loop firework rockets in radius 1 of location above target block: | |
66 | add "{LifeTime:2}" to nbt of loop-entity | |
67 | loop all living entities in radius 3 around location above target block: | |
68 | damage loop-entity by 3 | |
69 | else: | |
70 | launch "BURST" firework at block 30 in front of the player timed 0 coloured "black" | |
71 | drawDot count 4, particle "witchspell", XYZ 1, 1, 1, center location of block 30 in front of the player, visibleRange 320, pulseDelay 0, keepFor 10 ticks | |
72 | loop firework rockets in radius 1 of block 30 in front of the player: | |
73 | add "{LifeTime:2}" to nbt of loop-entity | |
74 | loop all living entities in radius 3 around block 30 in front of the player: | |
75 | damage loop-entity by 4 | |
76 | stop | |
77 | ||
78 | on projectile hit: | |
79 | if projectile is an arrow: | |
80 | if metadata "Alive" of projectile is "true": | |
81 | set metadata "Alive" of projectile to "false" | |
82 | create a safe explosion of force 10 at event-entity | |
83 | launch "BALL_LARGE" firework at event-location timed 0 coloured "red" and "black" | |
84 | loop firework rockets in radius 1 of event-location: | |
85 | add "{LifeTime:2}" to nbt of loop-entity | |
86 | set {_a} to 0 | |
87 | loop blocks in radius 3 around event-entity: | |
88 | if loop-block isn't bedrock: | |
89 | spawn falling block of loop-block at loop-block | |
90 | set loop-block to air | |
91 | push last spawned entity upwards with force 2 | |
92 | push last spawned entity direction from event-location to last spawned entity with force 0.5 | |
93 | delete projectile | |
94 | on damage: | |
95 | attacker has diamond hoe in hand | |
96 | cancel event |