Block Properties

Rayon provides a way to specify specific properties for blocks added by your mod:
  • friction: The surface friction of the block
  • restitution: The elasticity of collisions with the block
  • collidable: Whether or not Rayon should load this block into the simulation
  • isFullBlock: Determines how the shape of the block should be created in the simulation
Here is an example that executes during mod initialization:
BlockProperty.addBlockProperty(MyMod.MY_CUSTOM_BLOCK, 0.75f, 0.25f, true, true);