Confirmedusers, Bureaucrats, editor, Administrators
1,778
edits
CreativeMD (talk | contribs) |
|||
Line 63: | Line 63: | ||
This should solve all syntax errors. | This should solve all syntax errors. | ||
So how do we implement a bouncy block? It's pretty helpful to take a look at the [http://apidocs.vintagestory.at/Vintagestory.API | So how do we implement a bouncy block? It's pretty helpful to take a look at the [http://apidocs.vintagestory.at/api/Vintagestory.API.Common.Block.html api documentation] to find a proper way to implement it. | ||
The method <code>void onEntityCollide(IWorldAccessor world, Entity entity, BlockPos pos, BlockFacing facing, bool isImpact)</code> seems to be a good way to implement a bouncy functionality. | The method <code>void onEntityCollide(IWorldAccessor world, Entity entity, BlockPos pos, BlockFacing facing, bool isImpact)</code> seems to be a good way to implement a bouncy functionality. |