Everything posted by Novârch
-
[SOLVED] [1.15.2] java.lang.NullPointerException: Sending packet
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
-
[1.15.2] Getting hit entity from a RayTraceResult
Sorry, didn't look into it that much, won't make the same mistake again.
-
Busted ass workspace + plus missing some packages.
Quote from README.txt from Forge MDK:
-
[1.15.2] How to specify drops from blocks and other noob questions
You can still run Minecraft from your IDE be pressing the run button.
-
The forge installer appears as .jar and not as a .exe file
Install Java.
-
[1.15.2] Getting hit entity from a RayTraceResult
There used be a field RayTraceResult#entityHit in 1.12.2 but I can't find anything like that in 1.15.
-
[1.15.2] Item with subtypes?
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.
-
[ SOLVED ] [1.15.2] java.lang.IllegalArgumentException: Cannot register a capability implementation multiple times
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.
-
[ SOLVED ] [1.15.2] java.lang.IllegalArgumentException: Cannot register a capability implementation multiple times
FMLCommonSetupEvent
-
[ SOLVED ] [1.15.2] java.lang.IllegalArgumentException: Cannot register a capability implementation multiple times
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:
-
Freezing an entity in place 1.14.4
What type of loop is it? If you're using a while loop, don't.
-
NullPointerException on onItemRightClick
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); } */
IPS spam blocked by CleanTalk.