View difference between Paste ID: JcrBJi1s and HZyjyXkQ
SHOW: | | - or go back to the newest paste.
1-
command /hat:
1+
on command "/parkourset":
2-
	trigger:
2+
3-
		set {_helmets1.%player%} to player's tool
3+
	set Name of player's tool to "&fParkour Block"
4-
		set {_helmets2.%player%} to player's helmet
4+
5-
		set helmet of the player to {_helmets1.%player%}
5+
6-
		set player's tool to {_helmets2.%player%}
6+
	Name of player's tool is "&fParkour Block"
7
	set {_item} to 1 of player's tool
8
	wait 4 seconds
9-
	Lore of player's tool is "&9アクセサリー"
9+
	set event-block to air
10
	give player {_item}
11
12
on place:
13-
	Lore of player's shield is "&9アクセサリー"
13+
	Name of player's shield is "&5Trampoline Block"
14
	set {_item} to 1 of player's tool
15
	set {slime::%block's location%} to location of event-block
16
	wait 8 seconds
17
	set event-block to air
18
	give player {_item}
19
	clear {slime::%block's location%}
20
21
on place:
22
	Name of player's tool is "&5Trampoline Block"
23
	set {_item} to 1 of player's tool
24
	set {slime::%block's location%} to location of event-block
25
	wait 8 seconds
26
	set event-block to air
27
	give player {_item}
28
	clear {slime::%block's location%}
29
30
on step on slime_block:
31
	if location is {slime::%block's location%}:
32
		push player upwards at speed 3
33
34
on place:
35
	Name of player's shield is "&fParkour Block"
36
	set {_item} to 1 of player's shield
37
	wait 4 seconds
38
	set event-block to air
39
	give player {_item}
40
41
on place:
42
	Name of player's shield is "&5Trampoline Block"
43
	set {_item} to 1 of player's shield
44
	set {slime::%block's location%} to location of event-block
45
	wait 8 seconds
46
	set event-block to air
47
	give player {_item}
48
	clear {slime::%block's location%}
49
50
on place:
51
	Name of player's tool is "&6Parkour Block"
52
	set {_item} to 1 of player's tool
53
	set {_block} to type of event-block
54
	wait 4 seconds
55
	set event-block to air
56
	wait a tick
57
	show 50 block_crack particle at event-block with data of {_block} offset by 0.45, 0.45, 0.45
58
	if player's gamemode is not creative:
59
		give player {_item}
60
61
on offhand move:
62
	if "%Name of player's tool%" contains "Parkour Block":
63
	cancel event
64
65
on offhand move:
66
	if "%Name of player's tool%" contains "Parkour Block":
67
	cancel event