Goblin Traders [Fabric]

Goblin Traders [Fabric]

6M Downloads

[Bug] Goblins will trying eat food when killed

SnowCutieOwO opened this issue ยท 9 comments

commented

Describe the bug

If you try kill them at this moment they will fall and shown red, but could be easily killed if clicked on.

To Reproduce

  1. Spawn a goblin
  2. Damage it and make it eating food
  3. Kill it when eating
  4. The bug came out

Expected behavior

Goblins should stop eating immediately if he died

Mod Version

1.11.2

Modloader

NeoForge 1.21.1

Crash Log (if applicable)

N/A

Additional context

N/A

commented

Can you send a video of the problem since I can't replicate the issue? In my test, I get them to a one shot hit, then when they eat, I punch, and they die as normal.

commented

Are you sure you're not confused with the stun animation? There is also a noticeable vanilla kill sound when you actually kill any mob.

commented

Are you sure you're not confused with the stun animation? There is also a noticeable vanilla kill sound when you actually kill any mob.

Yes and I'm pretty sure

commented

I don't know what the bug is. When I kill them while eating, they die as normal.

commented

I don't know what the bug is. When I kill them while eating, they die as normal.

That's the problem. If you try to kill them when they finished eating, their health will recover during death animation, but give it another damage will make it back to normal.

commented

While I can't reproduce the issue, I've implemented a potential fix that will cancel the eat goal when the goblin is attacked. 575ac04

commented

While I can't reproduce the issue, I've implemented a potential fix that will cancel the eat goal when the goblin is attacked. 575ac04

it's easy to reproduce if you put a lot goblins into a small space

commented

I've followed your steps and don't run into the problem you have described. I will need a video or something with more details.

commented

I've followed your steps and don't run into the problem you have described. I will need a video or something with more details.

2025-07-28.15-32-10.mp4

There's another piece of video which i cannot upload, I'll try later.