How to override physics?
#1
Exclamation 
How to override physics in Cuberite? Is there any hook to do this? For example:
Code:
IsFallingEnabled=true
function OnBlockFalling(Block,x,y,z)
  if IsFallingEnabled then
    return false -- Allow block to fall
  else
    return true -- Prevent block from falling
  end
end

function EntityPhysicsTick(Entity,dx,dy,dz)
  -- Do something
  return true -- Do not call any other plugins
end
Reply
Thanks given by:


Messages In This Thread
How to override physics? - by TC1061 - 01-13-2018, 03:12 PM
RE: How to override physics? - by xoft - 01-14-2018, 09:10 AM



Users browsing this thread: 2 Guest(s)