View difference between Paste ID: cxR8mPmf and ZVYNKy5U
SHOW: | | - or go back to the newest paste.
1-
tpt.el.bran.name="mglq"
1+
tpt.el.bran.name = "mglq"
2-
tpt.el.bran.enabled=1
2+
tpt.el.bran.enabled = 1
3-
tpt.el.bran.color=0xaa00ff
3+
tpt.el.bran.color = 0xaa00ff
4-
tpt.el.bran.description="Powerful substance"
4+
tpt.el.bran.description = "Powerful substance"
5-
tpt.el.bran.menu=1
5+
tpt.el.bran.menu = 1
6-
tpt.el.bran.weight=1
6+
tpt.el.bran.weight = 1
7-
tpt.el.bran.menusection=6
7+
tpt.el.bran.menusection = 6
8-
tpt.el.bran.falldown=2
8+
tpt.el.bran.falldown = 3
9-
tpt.el.bran.gravity=1
9+
tpt.el.bran.gravity = 1
10-
tpt.el.bran.diffusion=2
10+
tpt.el.bran.diffusion = 2
11-
tpt.el.bran.heat=3000
11+
tpt.el.bran.heat = 3000
12-
tpt.el.bran.explosive=1
12+
tpt.el.bran.advection= 2
13-
function graphics(i, colr, colg, colb)
13+
function graphics(i, colr, colg, colb)
14-
   if tpt.get_property("temp",i) < 5000 
14+
   if tpt.get_property("temp",i) < 5000 
15-
   or tpt.get_property("temp",i) > 273.15 then
15+
   and tpt.get_property("temp",i) > 273 then
16-
   return 0,0x00FF0030,255,0,255,0,75,183,0,255
16+
   return 0,0x00FF0030,255,0,255,0,75,183,0,255
17-
  end
17+
 
18-
 
18+
 elseif tpt.get_property("temp",i) > 5000 then
19-
 if tpt.get_property("temp",i) > 5000 then
19+
  return 0,0x00ff0020,255,255,255,0,75,255,0,0
20-
  return 0,0x00ff0040,255,0,255,0,75,255,0,0
20+
21-
end  
21+
 elseif tpt.get_property("temp",i) < 273 then
22-
 if tpt.get_property("temp",i) < 273 then
22+
	return 0,0x00ff0020,255,0,255,255,75,0,0,255
23-
	return 0,0x00ff0040,255,0,255,255,75,0,0,255
23+
	end
24-
	end
24+
end
25-
end
25+