ball with negative energy gets different color

This commit is contained in:
rnd1 2016-05-12 13:07:46 +02:00
parent a6270cd958
commit eecf346d7e

View File

@ -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
}
},