1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
###Sugar
id=969
name=Sugar
icon=gfx\salt.bmo
model=gfx\grain.b3d
scale=0.2
mat=dust
weight=25
info=Sugar from a sugar cane. Makes foods tastier.
script start
	on:eat {
		process "eating",500;
		play "eat.wav";
		eat,5,10,0,10;
		}
	
script=end
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
### sugar Cane
id=223
name=Sugar Cane
group=stuff
icon=gfx\grain.bmp
model=gfx\grain.b3d
fx=16
scale=0.8
swayspeed=2
swaypower=5
col=2
health=45
mat=leaf
growtime=5
script=start
	on:kill {
		$tmp=1;
		$tmp2=spawntimer("self");
		if ($tmp2>-3){$tmp=2;}
		if ($tmp2>=0){$tmp=3;}
		create "item",969,getx("self"),getz("self"),$tmp;
		corona getx("self"),getz("self");
		freevar $tmp,$tmp2;
	}
	on:plant {
		spawntimer "self",-4;
	}
script=end