Jump to content

onUsingTick never called 1.16.5


ornamau

Recommended Posts

I'm trying make gun which shoot when player holds RMB.

@Override
    public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context) {
        context.getPlayer().sendMessage(new TranslationTextComponent("item.overpixel.tracer.test"), context.getPlayer().getUniqueID());
    }

How to fix it? Should I try another way instead? How can I detect if player holds any key or press it?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.