Jump to content

onUsingTick never called 1.16.5


Recommended Posts

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

    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

This topic is now closed to further replies.


  • Create New...

Important Information

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