From eecf346d7ed04fd6035463c17a67754a10a56fac Mon Sep 17 00:00:00 2001 From: rnd1 Date: Thu, 12 May 2016 13:07:46 +0200 Subject: [PATCH] ball with negative energy gets different color --- ball.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ball.lua b/ball.lua index 3f40320..abec7a6 100644 --- a/ball.lua +++ b/ball.lua @@ -94,6 +94,7 @@ minetest.register_node("basic_machines:ball_spawner", { local obj = minetest.add_entity({x=pos.x,y=pos.y,z=pos.z}, "basic_machines:ball"); local luaent = obj:get_luaentity(); luaent.energy = -1; + obj:set_properties({textures={"basic_machines_ball.png^[colorize:blue:120"}}) end } },