Jump to content

Recommended Posts

Posted

Hello,

I was wondering if anyone could point me to a tutorial on how to write a JEI plugin for 1.16.4. I have done some digging and have found some for 1.12.2, but I can't find any for the modern versions of the game. I have also tried following the instructions on wiki the mod provides, but I really struggle to follow them. Any help would be appreciated!

Posted

Have you looked at their Wiki?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

I have, however the examples they suggest to follow are either super complex or not updated past 1.12.2. I just need a simple example to follow and I can go from there. However, I can't seem to find one.

Posted

What are you having trouble with specifically?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

I am struggling with how I implement the methods. I have tried following the examples they recommend that are updated, but they list mods like Botania and Blood Magic. I see generally what I need to do, but for me its like trying to reverse engineer a combustion engine to make a campfire.

 

It also doesn't help that everyone has a different way of implementing the plugin. So on top of everything I don't even know what is the best way to approach making the plugin.

 

 

 

Posted

Another thing I have noticed is that half of the classes that I need to import to make the plugin work are not there. I know that it is not an issue with the gradle as I have done that right.

Posted

If you need further help PLEASE be more specific. "I am struggling with how I implement the methods" makes it sound like you're not understanding basic Java

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

Okay so I have put together something and it seems to work. However, I seem to be having an issue with the gui. I followed your plugin implementation as best I could, and I have wound up with the cursed image I have attached. The items are showing up where I want them to be, however I cannot seem to get the background to work. I have linked to the relevant files on my github. The only thing I can think of is that there is an issue with the size of the image that I am not considering.

 

https://github.com/skiprocks999/Rings-of-Infinity/tree/Rings-Of-Infinity-1.16.4/RingsOfInfinity/src/main/java/com/contInf/ringsOfInfinity/jeiPlugin

 

(Please ignore the name I haven't done the lang file yet)

Capture.PNG

Posted (edited)

Jei seems to like images that are 256x256, you can see how i set up the images for jei usage in the link i posted above. May not be the best way to do this though. I made the images 256x256 keeping the actual gui image starting at (0, 0) for easier handling of coordinates

Edited by Beethoven92

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

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



×
×
  • Create New...

Important Information

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