diff options
author | PilzAdam <adam-k@outlook.com> | 2012-10-03 13:25:14 +0200 |
---|---|---|
committer | PilzAdam <adam-k@outlook.com> | 2012-10-03 13:25:14 +0200 |
commit | c9ef93e758aee2e7de516d892354f9c961e2995d (patch) | |
tree | 7aa3d027ee61eb527225fef91a36f9389dfc8df6 | |
parent | 84bc111f0cebc0e28d5e6515ffe326f814c8c971 (diff) |
Make the item in flowing water slower
-rw-r--r-- | init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -127,13 +127,13 @@ minetest.register_entity(":__builtin:item", { local vec = get_flowing_dir(self) if vec then if vec and vec.x-p.x > 0 then - self.object:setvelocity({x=1,y=0,z=0}) + self.object:setvelocity({x=0.5,y=0,z=0}) elseif vec and vec.x-p.x < 0 then - self.object:setvelocity({x=-1,y=0,z=0}) + self.object:setvelocity({x=-0.5,y=0,z=0}) elseif vec and vec.z-p.z > 0 then - self.object:setvelocity({x=0,y=0,z=1}) + self.object:setvelocity({x=0,y=0,z=0.5}) elseif vec and vec.z-p.z < 0 then - self.object:setvelocity({x=0,y=0,z=-1}) + self.object:setvelocity({x=0,y=0,z=-0.5}) end self.object:setacceleration({x=0, y=-10, z=0}) self.physical_state = true |