Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1888

Closed
Open
Created Apr 09, 2025 by Highrii@Highrii

PreventConversion and PreventTransformation Options Bug

Issue Summary

PreventTransformation Option Issue

The PreventTransformation: true option is not functioning correctly. When entities like Mooshroom or Pig are struck by lightning, they still transform despite having this option enabled.

PreventConversion Option Issues

  1. Regular Zombies (Zombie) with this option show continuous shaking animation (drowning conversion animation) but don't fully prevent conversion.
  2. Zombie variants (e.g., Husk) completely ignore this option and can still convert to Drowned normally.

Steps to Reproduce

Issue 1: PreventTransformation

  1. Create a mob configuration with PreventTransformation: true:
TestMob:
  Type: MUSHROOM_COW  # or PIG
  Options:
    PreventTransformation: true
  1. Spawn the mob
  2. Strike it with lightning (via command or natural weather)
  3. Observe if transformation occurs (e.g., Mooshroom color change, Pig to Zombified Piglin)

Issue 2: PreventConversion

  1. Configure both regular Zombie and Husk with PreventConversion: true:
ZombieTest:
  Type: ZOMBIE
  Options:
    PreventConversion: true
  Equipment:
  - leather_helmet HEAD  # Helper to observe conversion (equipment disappears upon conversion)

HuskTest:
  Type: HUSK
  Options:
    PreventConversion: true
  Equipment:
  - leather_helmet HEAD  # Helper to observe conversion
  1. Spawn both types of mobs
  2. Observe regular zombie for shaking animation
  3. Place Husk in water and observe if it converts to Drowned

Current Behavior

  • Lightning-struck Mooshroom/Pig still transform
  • Regular zombies continuously shake (drowning conversion animation)
  • Husks completely ignore the option and convert to Drowned

Expected Behavior

  • PreventTransformation: true should completely prevent lightning-triggered transformations
  • PreventConversion: true should:
    • Block conversion behavior at code level
    • Work effectively for all zombie variants (including Husk)

Server Environment

  • Server Version: 1.20.6
  • MythicMobs Version: 5.8.2
  • Java Version: Java 21
  • Server Logs: No errors reported
  • Debug Logs: None available

Suggested Fix Direction

PreventTransformation Issue

  • Verify proper listening of EntityTransformEvent
  • Ensure option priority over vanilla game logic

PreventConversion Issue

  • Zombie shaking: Review current prevention logic that may be keeping entity in conversion state
  • Husk ineffectiveness: Check if variant entities are included in PreventConversion condition checks
Edited Apr 14, 2025 by Highrii
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking