Skip to content

Conversation

Joniii11
Copy link

Description

This pull request introduces comprehensive support for armor stands, including their entity logic, item behavior, rotation handling, and equipment slot management. The changes add new modules and types to handle armor stand entities and their rotations (not fully done yet :C). Also added EulerAngle cause it was missing.

Armor Stand Entity & Item Support

  • Added ArmorStandEntity implementation with full support for flags, equipment slots, rotation management, NBT data, and damage handling in armor_stand.rs.
  • Implemented ArmorStandItem behavior, allowing players to place armor stands in the world with correct rotation and sound effects in armor_stand.rs and registered it in the item registry. [1] [2] [3]

Rotation & Math Utilities

  • Improved rotation normalization for entity spawning by using rem_euclid to ensure angles are within [0, 360) degrees in spawn_entity.rs thanks to @teknostom for helping me with this one.

Testing

placement

  • clippy passed
  • and every test also passed

just get a armor stand in your inventory and place it down.

Please follow our Coding Guidelines

@Joniii11 Joniii11 marked this pull request as draft September 4, 2025 12:36
@Joniii11 Joniii11 changed the title Add ArmorStandItem and ArmorStandEntity Add Items with their corresponding entitys Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant