This page relates to Immersive Intelligence, which has built-in support!
Block Penetration Values
The BlockPenetration
package can be used to add block and material hardness values to Immersive Intelligence’s block
damage system.
Importing the Package
Adding Materials
Parameters
Type | Name | Required |
---|---|---|
Type IMaterial | Name Material | Required Yes |
Type int | Name Integrity | Required Yes |
Type int | Name Density | Required Yes |
Type String | Name Penetration Type | Required Yes |
Type String | Name Sound | Required Yes |
Integrity is the amount of hitpoints a block has. Damage is dealt in a similar way it is done to entities.
Density is the modifier of speed loss after contact with the block. The higher the density, the more a bullet will be
slowed down after penetration.
Syntax
Penetration Types
Name | Used for |
---|---|
Name metal | Used for all the metals |
Name ground | Used for dirt, sand, etc. |
Name solid | Used for stone, bricks |
Name flesh | Used for unarmored mobs |
Name light | Used for glass, wool, leaves, cloth |
Example
Adding Metals
This function is an easy way to add a metal block and sheetmetal along with their slab variants using an Ore Dictionary name.
Parameters
Type | Name | Required |
---|---|---|
Type String | Name Sound | Required Yes |
Type int | Name Integrity | Required Yes |
Type int | Name Density | Required Yes |
Syntax
Example
Adding Blocks
Parameters
Type | Name | Required |
---|---|---|
Type IBlockState | Name BlockState | Required Yes |
Type int | Name Integrity | Required Yes |
Type int | Name Density | Required Yes |
Type String | Name Penetration Type | Required Yes |
Type String | Name Sound | Required Yes |