Jump to content

Recommended Posts

Posted

I have an eclipse gradle project with a Minecraft mod dealing with ore generation and I want to add the Advanced Xray Mod by Error_MiKeY for testing purposes. I'm not planning on distributing his mod with mine, I just want to be able to test my mod within my workspace without having to build a jar file and put both files into actual Minecraft and run it there every time I want to test something. What I've tried and what sometimes works with other mods is adding the mod's .jar file to the run\mods folder. However, when I put the Advanced Xray mod in there, I get "Advanced Xray has class loading errors" (crash report here). The mod calls a method called Minecraft.func_7140_x(), and it returns a NoSuchMethod error, even though both mods are on the same version 1.16.4. They both work when I build my mod and add it to the mod files in Minecraft and run it on the actual game, so why doesn't it work here? Is it because my workspace is set up incorrectly? I heard that it's because it's not deobfuscated, but I'm not sure how to deobfuscate it without a tool like BON2 to do it for me and I can only go up to 1.15 on that. I've researched it and I heard that you can also put a dependency on your build.gradle file and it will download it online. I don't really have an understanding of how it works so I got lost in this step. What URL do I put? The mod is on GitHub, so do I add a GitHub repository with the link to the GitHub and grab it from there? I'm not sure. I also heard another way to add a dependency is to add a libs folder on your project root directory and put it there. By that do they mean making a new libs folder on the outermost layer where the build, settings, and src folders are or are they talking about the libs folder in \build? If the former, I tried making a libs folder like this and then I added the .jar file to it but nothing happened. I clearly don't know what I'm doing so don't overestimate how many things I know lol.

 

I'd appreciate any help, thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello , when I try to launch the forge installer it just crash with a message for 0,5 secondes. I'm using java 17 to launch it. Here's the link of the error :https://cdn.corenexis.com/view/?img=d/ma24/qs7u4U.jpg  
    • You will find the crash-report or log in your minecraft directory (crash-report or logs folder)
    • Use a modpack which is using these 2 mods as working base:   https://www.curseforge.com/minecraft/modpacks/life-in-the-village-3
    • inicie un mundo donde instale Croptopia y Farmer's Delight, entonces instale el addon Croptopia Delight pero no funciona. es la version 1.18.2
    • Hello all. I'm currently grappling with the updateShape method in a custom class extending Block.  My code currently looks like this: The conditionals in CheckState are there to switch blockstate properties, which is working fine, as it functions correctly every time in getStateForPlacement.  The problem I'm running into is that when I update a state, the blocks seem to call CheckState with the position of the block which was changed updated last.  If I build a wall I can see the same change propagate across. My question thus is this: is updateShape sending its return to the neighbouring block?  Is each block not independently executing the updateShape method, thus inserting its own current position?  The first statement appears to be true, and the second false (each block is not independently executing the method). I have tried to fix this by saving the block's own position to a variable myPos at inception, and then feeding this in as CheckState(myPos) but this causes a worse outcome, where all blocks take the update of the first modified block, rather than just their neighbour.  This raises more questions than it answers, obviously: how is a different instance's variable propagating here?  I also tried changing it so that CheckState did not take a BlockPos, but had myPos built into the body - same problem. I have previously looked at neighbourUpdate and onNeighbourUpdate, but could not find a way to get this to work at all.  One post on here about updatePostPlacement and other methods has proven itself long superceded.  All other sources on the net seem to be out of date. Many thanks in advance for any help you might offer me, it's been several days now of trying to get this work and several weeks of generally trying to get round this roadblock.  - Sandermall
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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