Skip to main content

Shaking (Power Type)

Makes the entity that has the power shake, like a strider out of lava or a zombie that is converting.

Type ID: apoli:shaking

Fields

None.

Behaviour

The shake is the same body yaw wobble vanilla uses, so other players see it on the entity, but it doesn't show in your own first-person view. Skeletons and strays are the exception: their renderer decides isShaking on its own and ignores the power.

warning

The client checks this power's condition against the world as the client knows it. Conditions that need state only the server has will never pass here, such as power inventories, apoli:command, apoli:advancement, apoli:scoreboard and apoli:stat. Use apoli:power_active or a resource instead, because those are synced.

Examples

{
  	"type": "apoli:shaking",
  	"condition": {
    	"type": "apoli:on_fire",
      "inverted": true
  	}
}

This makes the entity shake while it isn't on fire.