1. Wiki
  2. /Entities
  3. /minecraft:rotation_axis_aligned

minecraft:rotation_axis_aligned

Don't want to write this by hand? GodCraft sets minecraft:rotation_axis_aligned for you with a switch.Get GodCraft

Overview

minecraft:rotation_axis_aligned is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Snaps the entity to face the closest of the four main directions. Pair it with body_rotation_blocked to keep its body locked to that direction.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:rotation_axis_aligned": {}
}

We use cookies to improve your experience and analyse site traffic. Learn more