forked from Mineclonia/Mineclonia
Make TNT blink totally white
This commit is contained in:
parent
cc119a717c
commit
a333c5a177
|
@ -72,7 +72,7 @@ local TNT = {
|
||||||
function TNT:on_activate(staticdata)
|
function TNT:on_activate(staticdata)
|
||||||
self.object:setvelocity({x=0, y=4, z=0})
|
self.object:setvelocity({x=0, y=4, z=0})
|
||||||
self.object:setacceleration({x=0, y=-10, z=0})
|
self.object:setacceleration({x=0, y=-10, z=0})
|
||||||
self.object:settexturemod("^[brighten")
|
self.object:settexturemod("^tnt_blink.png")
|
||||||
end
|
end
|
||||||
|
|
||||||
function TNT:on_step(dtime)
|
function TNT:on_step(dtime)
|
||||||
|
@ -85,7 +85,7 @@ function TNT:on_step(dtime)
|
||||||
if self.blinkstatus then
|
if self.blinkstatus then
|
||||||
self.object:settexturemod("")
|
self.object:settexturemod("")
|
||||||
else
|
else
|
||||||
self.object:settexturemod("^[brighten")
|
self.object:settexturemod("^tnt_blink.png")
|
||||||
end
|
end
|
||||||
self.blinkstatus = not self.blinkstatus
|
self.blinkstatus = not self.blinkstatus
|
||||||
end
|
end
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 151 B |
Loading…
Reference in New Issue