Jump to content

TheLazySquid

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

TheLazySquid's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Does anyone know how to change the name/tooltips of an item client-side? I've seen a couple other mods utilize this so I think it's possible. I'm using 1.16, btw.
  2. Well... i'm using 1.12.2 but since this is a 1.16 forum just say i'm using that
  3. I'm making a client side mod that doesn't allow you to close chests with certain items in them... however, I've been encountering difficulties in not only finding out when a player opens a chest, but also reading the contents. Here's my code, for reference: @SubscribeEvent public void openChest(PlayerInteractEvent event){ Minecraft.getMinecraft().player.sendMessage(new TextComponentString(Minecraft.getMinecraft().player.openContainer.toString())); if (Minecraft.getMinecraft().player.openContainer instanceof ContainerChest) { // verify that it's really a chest ContainerChest chest = (ContainerChest)Minecraft.getMinecraft().player.openContainer; // it's now safe to cast IInventory inv = chest.getLowerChestInventory(); //do things with inv } }
  4. I was wondering if there is any way to make titles from the /title command appear on the screen... does anyone know?
  5. 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
×
×
  • Create New...

Important Information

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