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 141
    • Issues 141
    • 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
  • #1442

Closed
Open
Created Jan 05, 2024 by YouShengL@YouShengL

CustomAI panicWhenOnFire bug

Summary

The Custom AI panicWhenOnFire only works at full block water but waterlogged block ex: stone_stairs with water

Steps to reproduce

  1. Set AIGoalSelectors of mob to
  • panicWhenOnFire
  1. /mm reload
  2. summon the mob
  3. put a waterlogged stairs beside the mob
  4. ignite the mob
  5. the mob won't walk into the waterlogged block

Current behavior

I used some incomplete blocks to decorate the monster's lair, including stone stairs and stone slabs along the edges of the water pool for decorate details. However, this caused the panicWhenOnFire function to malfunction or not operate correctly.

Intended correct behavior

I believe even partially waterlogged incomplete blocks should be considered as water. When the monster catches on fire, it will run towards these blocks in order to extinguish itself.

Server log file

https://pastebin.com/1C78P902

Debug log snippet

Provide a link to a Pastebin paste with an excerpt of your latest.log file that includes debug output where you trigger the bugged behavior.

Proposed fixes

Allow monsters to detect not only water sources and water flows but also slabs containing water, with the condition that slabs can only detect the bottom part with waterlogged. I understand that detecting stairs would introduce too much complexity, but if the bottom part of slabs could be detected, it would significantly improve the situation.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking