Skip to main content

Phasing (Power Type)

Lets the entity that has the power phase, meaning move, through blocks.

Type ID: apoli:phasing

Fields

FieldTypeDefaultDescription
blacklistBooleanfalseIf true, block_condition lists the blocks the entity can't move through.
block_conditionBlock Condition TypeoptionalIf set, the entity can only move through blocks that pass this condition, or through every block except those, depending on blacklist.
render_typeString"blindness"How the surroundings render while phasing: "blindness", "remove_blocks" or "none".
view_distanceFloat10.0How far the player can see through walls while phasing with render_type set to "blindness".
phase_down_conditionEntity Condition TypeoptionalIf set, the entity can only phase downwards while this condition passes.

Examples

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

This lets the player phase through every block except those in the origins:unphasable block tag, which Origins ships in data/origins/tags/block/unphasable.json. The player can also phase down while sneaking, stopping briefly at each block so they don't take fall damage.