Phasing (Power Type)

Allows the entity that has the power to 'phase' (move) through blocks.

Allows the entity that has the power to “phase” (move) through blocks.

Type ID: apoli:phasing

Fields

FieldTypeDefaultDescription
blacklistBooleanfalseIf set to true, the block_condition field will define which blocks the player can NOT move through.
block_conditionBlock Condition Type (Data Type)optionalIf specified, the entity will only be able to move through these blocks (or not be able to move through these, depending on what blacklist is set to).
render_typeString"blindness"Determines how the environment is rendered when “phasing” through (moving) blocks. Accepts "blindness", "remove_blocks" or "none".
view_distanceFloat10.0Determines how far the player can look through walls when “phasing” (moving) through blocks when render_type is set to "blindness".
phase_down_conditionEntity Condition Type (Data Type)optionalIf specified, the entity will only be able to “phase” (move) downwards if this condition is fulfilled.

Examples

{
  	"type": "apoli:phasing",
  	"blacklist": true,
  	"render_type": "blindness",
  	"view_distance": 10,
  	"block_condition": {
    	"type": "apoli:in_tag",
    	"tag": "apoli:unphasable"
  	},
  	"phase_down_condition": {
    	"type": "apoli:and",
    	"conditions": [
      		{
        		"type": "apoli:sneaking"
      		},
      		{
        		"type": "apoli:on_block"
      		}
    	]
  	}
}

This example will allow the player to phase through all blocks except for those in the origins:unphasable (data/origins/tags/blocks/unphasable.json) block tag. They can also phase down while sneaking, but will make a short stop at each block so they don’t take fall damage.