1
2
3
4
5
6
7
8
9
10
11
12
13
14
script=start
on:create {
extendscript "self","sys/scripts/placing_nonsolid.s2s";
}
	on:kill {
		if ($creative==0) {
			$lootx=getx ("self");
			$looty=gety ("self");
			$lootz=getz ("self");
			$loot=create ("item",40);
			setpos "item",$loot,$lootx,$looty,$lootz;
		}
	}
script=end
instead you can simply use a 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//X plus+
				if ($pyaw<-45) {
					if ($pyaw>-135) {
							if ($type==grass) {
								skipevent;
							}else{
								$bx-=17.9;
								$placeblock=create ("object",$bid);
								$bpitch=getpitch ("object",$placeblock);
								$byaw=getyaw ("object",$placeblock);
								if ($bid==7) {
									$bx+=3.2;
									$byaw=-90;
									$bpitch=-45;
								}
								if ($type==stair) {
									$byaw=-90;
								}
								setrot "object",$placeblock,$bpitch,$byaw,0;
								setpos "object",$placeblock,$bx,$by,$bz;
								if ($creative==0) {
									freestored "unit",1,$bid,1;
								}
							}
						}
					}
//X minus-
					if ($pyaw<135) {
						if ($pyaw>45) {
							if ($type==grass) {
								skipevent;
							}else{
								$bx+=17.9;
								$placeblock=create ("object",$bid);
								$bpitch=getpitch ("object",$placeblock);
								$byaw=getyaw ("object",$placeblock);
								if ($bid==7) {
									$bx-=3.2;
									$byaw=90;
									$bpitch=-45;
								}
								if ($type==stair) {
									$byaw=90;
								}
								setrot "object",$placeblock,$bpitch,$byaw,0;
								setpos "object",$placeblock,$bx,$by,$bz;
								if ($creative==0) {
									freestored "unit",1,$bid,1;
								}
							}
						}
					}
1
2
3
4
5
6
7
8
9
10
11
12
13
on:hit {
	if ($creative==1) {
		free "self";
	}else{
		if (exists("self")==1) {
			$hp=health ("self");
			$maxhp=maxhealth ("self");
			freetimers "self","reheal";
			timer "self",750,1,"reheal";
			msg "Block HP: |$hp/$maxhp|",2;
		}
	}
}
why IN THE WORLD would you use the 1
2
3
4
5
6
on:tree1 {
		$wy+=17.9;
		$wood=create ("object",241);
		setpos "object",$wood,$wx,$wy,$wz;
		freevar $rndtree;
	}
this variable isnt even used in this event, why would you use it here?!