equipment
Modifies the equipment of this entity using a DSL builder.
This function only applies to LivingEntity instances that have equipment. If the entity has no equipment slot (e.g., some mobs), the block is not executed.
Example usage:
entity.equipment {
helmet = ItemStack(Material.DIAMOND_HELMET)
itemInMainHand = ItemStack(Material.DIAMOND_SWORD)
}Content copied to clipboard
Parameters
editor
A lambda with receiver that configures the entity's equipment