View difference between Paste ID: krni4a5S and QYW1vYRj
SHOW: | | - or go back to the newest paste.
1
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
2
                Name: DeathHead            
3
                Version: 1.0                
4
                Skript: 2.0.2      
5
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
6
 
7
╔════════════════════════════════════════
8
║  Licencja DeathHead by FejminTV             ║
9
║  Zezwalam na:                               ║
10
║ - edytowanie komunikatow                    ║
11
║ Nie zezwalam na:                            ║
12-
║ - Uznwanie sie autorem                      ║
12+
║ - Robienie z niego jakichkolwiek reklam     ║
13-
║ - Wykorzystywania kody do wlasnych skryptow ║
13+
14-
║ - Robienie z niego jakich kolwiek reklam    ║
14+
15
╚════════════════════════════════════════
16
17
variables:
18
	{tree.status} = 1
19
options:
20
	permission: &4Nie masz uprawnien by uzywac tej komendy!
21
	tag: &8[&cTreeAssist&8]
22
on break of wood:
23
	{tree.status} is 1:
24
		if player has permission "tree":
25
			player is holding axe:
26
				loop blocks upwards:
27
					loop-block is wood:
28
						drop the loop-block-1 at event-block
29
						set the loop-block-1 to air
30
						add 1 to {tool.%player%}
31
						loop blocks in radius 1 around loop-block:
32
							if loop-block-1 is leaves:
33
								set {tree.%player%} to true
34
								set the loop-block-1 to air
35
		else:
36
			send "{@tag} {@permission}"
37
			stop
38
39
command /tree [<text>]:
40
	trigger:
41
		if player has permission "tree":	
42
			if arg 1 is "off":
43
				set {tree.status} to 0
44
				send "{@tag} &7TreeAssist jest &cOFF"
45
			if arg 1 is "on":
46
				set {tree.status} to 1
47
				send "{@tag} &7TreeAssist jest &aON"
48
			else:
49
				send "{@tag} &c/tree &7(&con&7/&coff&7)"
50
				stop
51
		else:
52
			send "{@tag} {@permission}"
53
			stop