Jump to content

Recommended Posts

Posted

Basically, i'm writing a mod that has to do something when you mount a horse. However, whenever the horse is mounted (or dismounted) it fires twice.

Here's my code: 

@SubscribeEvent
    public void mountEntity(EntityMountEvent event){
        Minecraft.getMinecraft().player.sendMessage(new TextComponentString("horse"));
    }

I'm using 1.12.2 if that makes any difference

  • Guest locked this topic
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.