Skip to content

Conversation

Joniii11
Copy link

@Joniii11 Joniii11 commented Aug 28, 2025

This pull request introduces several new features and improvements related to entity management, item behavior, and projectile mechanics, especially focusing on the addition of armor stand and wind charge entities and items. It also includes utility enhancements and some internal refactoring to support these features.

Entity and Item Additions:

  • Added support for armor stand entities and items, including placement logic and world interaction. (pumpkin/src/entity/decoration/armor_stand.rs, pumpkin/src/item/items/armor_stand.rs, pumpkin/src/item/items/mod.rs, pumpkin/src/item/items/mod.rs, pumpkin/src/item/items/mod.rs) [1] [2] [3] [4] [5]
  • Introduced wind charge as a new throwable projectile entity and corresponding item, with logic for spawning, rendering, explosion, and deflection. (pumpkin/src/entity/projectile/wind_charge.rs, pumpkin/src/entity/projectile/mod.rs, pumpkin/src/item/items/wind_charge.rs, pumpkin/src/item/items/mod.rs, pumpkin/src/item/items/mod.rs) [1] [2] [3] [4] [5]

Projectile Mechanics and Utilities:

  • Implemented a general projectile deflection system with multiple deflection types for entities. (pumpkin/src/entity/projectile_deflection.rs, pumpkin/src/entity/mod.rs) [1] [2]
  • Enhanced entity invisibility management by adding an invisible flag and a method to set it. (pumpkin/src/entity/mod.rs) [1] [2] [3]

Math and Utility Improvements:

  • Added an EulerAngle struct for representing and serializing 3D rotations, and a utility method to compute the average side length of a bounding box. (pumpkin-util/src/math/euler_angle.rs, pumpkin-util/src/math/mod.rs, pumpkin-util/src/math/boundingbox.rs) [1] [2] [3]

Protocol and Serialization Fixes:

  • Improved angle normalization for entity spawn packets to correctly handle values outside the [0, 360) range. (pumpkin-protocol/src/java/client/play/spawn_entity.rs)
    Please follow our Coding Guidelines

Testing

So basically, just place down a armor stand, and throw a wind charge entity. The explosion on impact does not work yet, since there is no collision logic there yet.

@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
@Joniii11 Joniii11 marked this pull request as ready for review September 19, 2025 19:11
@Joniii11
Copy link
Author

I would like some feedback from you guys if this is good enough.

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