Jump to content

Novârch

Members
  • Posts

    422
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Novârch

  1. I'm getting this error on a packet that sends on the player left clicking, the log doesn't show any of my code so I don't know what the problem is. Here is the crash report: https://gist.github.com/Novarch129/6c6681dbd24eb9aa6856b75917b44c0f And here is a git repo of my mod: https://github.com/Novarch129/JoJo-s-Blocky-Adventure The attack message is at: https://github.com/Novarch129/JoJo-s-Blocky-Adventure/blob/master/src/main/java/com/novarch/jojomod/network/message/SyncStandSummonButton.java The input event is at: https://github.com/Novarch129/JoJo-s-Blocky-Adventure/blob/master/src/main/java/com/novarch/jojomod/network/message/SyncStandSummonButton.java
  2. Sorry, didn't look into it that much, won't make the same mistake again.
  3. Quote from README.txt from Forge MDK:
  4. You can still run Minecraft from your IDE be pressing the run button.
  5. There used be a field RayTraceResult#entityHit in 1.12.2 but I can't find anything like that in 1.15.
  6. Back in 1.12.2 there was a field called "hasSubtypes" in the Item class but I can't find anything like that in 1.15.2.
  7. Heres the repo: Switched it to ClientSetupEvent. https://github.com/Novarch129/Jojomod-1.15.2 Theres a lot of commented out code due to this being a port of a 1.12.2 mod.
  8. I'm trying to port a capability from 1.12 to 1.15 and keep getting this error, but I don't understand where I'm registering it twice. Here are the capability classes:
  9. What type of loop is it? If you're using a while loop, don't.
  10. I get a NullPointerException on my method onItemRightClick. Apparently 'props' is null, but I don't know why. /* public ActionResult<ItemStack> onItemRightClick(final World worldIn, final EntityPlayer playerIn, final EnumHand handIn) { final ItemStack stack = playerIn.getHeldItem(handIn); final IJojoBAdvPlayerCap props = (IJojoBAdvPlayerCap)playerIn.getCapability((Capability)JojoBAdvProvider.JOJO_CAP, (EnumFacing)EnumFacing.NORTH); if (stack == null) { return (ActionResult<ItemStack>)new ActionResult(EnumActionResult.FAIL, (Object)stack); } if (props.getStandID() == 0) { playerIn.setActiveHand(handIn); return (ActionResult<ItemStack>)new ActionResult(EnumActionResult.SUCCESS, (Object)stack); } playerIn.sendMessage((ITextComponent)new TextComponentTranslation("msg.jojomod.standalready.txt", new Object[0])); return (ActionResult<ItemStack>)new ActionResult(EnumActionResult.PASS, (Object)stack); } */
×
×
  • Create New...

Important Information

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