mountStack

fun Entity.mountStack(block: EntityStackBuilder.() -> Unit)

Builds an entity stack (passengers) where each entity mounts on top of the previous one.

Creates a chain of passengers starting from this entity. Each entity in the DSL block becomes a passenger of the previous entity, forming a vertical stack.

Example usage:

baseEntity.mountStack {
+armorStand1 // mounts on baseEntity
+armorStand2 // mounts on armorStand1
+displayEntity // mounts on armorStand2
}

Parameters

block

the DSL block to add entities to the stack using the unary plus operator