Skip to content

[1.16.5 Bug] The thrown of Fire charge cannot be disabled #473

Description

@GoldenTotem

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

  1. Install mod crafttweaker.
  2. 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();
        }
    });
  1. 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

  1. Make this function obey the event, and can be cancelled properly.
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions