Bug Closed · Resolved

MythicMobs + ModelEngine Projectil Bounces Bug

#4285 opened by Unknown 2 years ago

Unknownreported this bug

Summary

When configuring a projectile to bounce in MythicMobs, using a ModelEngine entity, an error related to the projectile's bounding box occurs. The error indicates that the bounding boxes do not overlap and suggests that the bounding box might have been set to zero.

Steps to reproduce

  1. Set up an entity in ModelEngine.
  2. Configure a projectile in MythicMobs to use the ModelEngine entity with the following properties: bounce=true, bouncevelocity=0.95, and 3. other related properties.
  3. Launch the projectile in-game.
  4. Observe the error in the server console.

https://mclo.gs/3RshWkO (Mob and Skill)

This is the hitbox configuration of the model [Legacy attachment omitted] [Legacy attachment omitted] Current behavior

When the configured projectile, which uses a ModelEngine entity, is launched, an error related to bounding boxes appears in the server console. The error indicates that the bounding boxes do not overlap.

Intended correct behavior

The projectile, utilizing a ModelEngine entity, should bounce correctly without producing errors in the server console. Bounding boxes should function correctly to calculate the projectile's bounce.

Server log file

https://mclo.gs/dC7NRk0

Debug log snippet

https://mclo.gs/uciNYR1

Proposed fixes

Before reaching this exception check that modelengine is installed on the server and recover its hitbox. it would be something like this

ModeledEntity modeledEntity = ModelEngineAPI.getModeledEntity(api.getMythicMobInstance(entity).getUniqueId());    
if (modeledEntity != null) {
    Hitbox hitbox = modeledEntity.getBase().getHitbox();
    boundingBox = new BoundingBox(hitbox.getMaxWidth(), hitbox.getHeight(), hitbox.getDepth());
}

~Bug

Unknowncommented

Engaging in a 3-letter Wordle unlimited game allows players to experience incremental learning progress as they encounter new words https://mywordle.net/3-letter-wordle-unlimited/, refine their guessing strategies, and adapt to the game's challenges. This iterative process of trial and error fosters a sense of continuous improvement and mastery, motivating players to persist and further develop their word-guessing skills.

Sign in to join the discussion.