Describe the Bug
Minecraft 1.16.5 Forge 36.2.35 Mod 2.5.0
This mod made fire charges throwable. But this function cannot be disabled, even use crafttweaker script.
Reproduction Steps
- Install mod crafttweaker.
- Use the below code. Put this code into a zs file, and put this file into
scripts folder.
import crafttweaker.api.events.CTEventManager;
import crafttweaker.api.event.entity.player.interact.MCRightClickItemEvent;
CTEventManager.register<MCRightClickItemEvent>(event => {
if (event.itemStack.registryName == <item:minecraft:fire_charge>.registryName) {
event.player.sendMessage("h");
event.cancel();
}
});
- Enter the game and use a fire charge. You see "h" is printed to the chat, but the entity is still summoned, this shows that the event is fired successfully, but not cancelled successfully.
Expected Result
- Make this function obey the event, and can be cancelled properly.
- Add a config to disable this function.
Screenshots and Videos
No response
Operating System
win11
Mod Version
Beta 2.5.0-1
Minecraft Version
1.16.5
Forge Version
36.2.35
Other Mods
No response
Additional Context
No response
Describe the Bug
Minecraft 1.16.5 Forge 36.2.35 Mod 2.5.0
This mod made fire charges throwable. But this function cannot be disabled, even use crafttweaker script.
Reproduction Steps
scriptsfolder.Expected Result
Screenshots and Videos
No response
Operating System
win11
Mod Version
Beta 2.5.0-1
Minecraft Version
1.16.5
Forge Version
36.2.35
Other Mods
No response
Additional Context
No response