TeamREPENTOGON / TeamREPENTOGON/REPENTOGON

[Bug] MC_PLAYER_GET_HEART_LIMIT callback makes player invincible with Heartbreak item

Open
#317 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
345
Forks
51
Avg merge
11h 2m
Merged PRs (30d)
4

Description

I used the MC_PLAYER_GET_HEART_LIMIT callback to set the character's health limit to 6 hearts, while having the Heartbreak item. By obtaining items that increase health, it can be discovered that the upper limit of health is indeed 6 hearts. However, the Heartbreak item provided broken hearts beyond the limit, adding 6 broken hearts. After that, the number of broken hearts stopped increasing, resulting in the character being invincible and unable to die.
QQ截图20240205200617

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the interaction between the MC_PLAYER_GET_HEART_LIMIT callback and the Heartbreak item by setting the health limit to 6 hearts and obtaining health-increasing items. Trace how the callback limit and Heartbreak's broken hearts are applied, then verify that the player can still take lethal damage and die.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev, reverse-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.