"Deal (0) damage to item in slot (0) of the current GUI of [entity]" block is broken (2026.1 EAP 10319)

Started by bl4dele4f on

Topic category: Troubleshooting, bugs, and solutions

Joined Dec 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Deal (0) damage to item in slot (0) of the current GUI of [entity]" block is broken (2026.1 EAP 10319)
Tue, 03/10/2026 - 12:02 (edited)

 

video

I made "Deal 100 damage to item in slot 0 when button pressed" procedure, and "deal damage" block do nothing.

 

This is auto-generated code:

package net.mcreator.flowerreflect.procedures;

/* imports omitted */

public class MendProcedureProcedure {
	public static void execute(Entity entity) {
		if (entity == null)
			return;
		if (entity instanceof Player _player && _player.level() instanceof ServerLevel _serverLevel && _player.containerMenu instanceof FlowerreflectModMenus.MenuAccessor _menu) {
			ItemStack stack = _menu.getSlots().get(0).getItem();
			if (stack != null) {
				stack.hurtAndBreak(100, _serverLevel, null, _stkprov -> {
				});
				_player.containerMenu.broadcastChanges();
			}
		}
	}
}

 

I don't know Java, so I don't know what happened to auto-generated code.

But i'm sure this is bug. In 2024.3, that block worked well!

(OK... I found same bug in 2024.3....)

 

 

 

 

Edited by bl4dele4f on Tue, 03/10/2026 - 12:02
Joined Dec 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh my. why video is so laggy…
Tue, 03/10/2026 - 06:45

Oh my. why video is so laggy :(

Joined Dec 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OK I found more info If GUI…
Tue, 03/10/2026 - 11:26

OK I found more info

If GUI opened by Item's "Open bound GUI on right click?" thing, this bug happens!