Curios API (Forge/NeoForge)

Curios API (Forge/NeoForge)

140M Downloads

Add Image and Label to slot

ClaudiusMinimus opened this issue ยท 3 comments

commented

As I have posted on your curseforge page and it seems you prefer questions to be posted here, I decided to ask you again.

curios-forge-1.16.5-4.0.5.1.jar
Forge 36.1.0

How do I add an image and a label to a custom slot? I have added a data pack for the slot and it works fine. I have also added a resource pack for the image using the same naming conventions you do in your mod, but it does not appear.

I would greatly appreciate your help regarding this matter.
Thank you,
CM

Below are screenshots of my directory structure and the curios slot in question. I use openloader for my data/resource packs which makes sure they are loaded for all those who use my pack.

image

image

commented

Ignore below, false alarm.

Hi, unfortunately, I'm having a similar slot texture issue. I use KubeJS to load in the tags, textures and lang, and the tags and lang work, but I'm not getting any textures:

image
image
image

P.S. How can I remove the default slots Curio adds on its own? I don't need a Charm slot, and didn't specify it in curios-server.toml, yet there it is. I suspect this is actually caused by the charm slot being leftover in my playerdata in the world save. It is still a bit weird that the reset command didn't well... reset my slots and remove that charm slot.

commented

I added the file en_us.json as follows and it worked perfectly!

{ "curios.identifier.magnet": "Magnet" }

Thanks,
CM

commented

For the label, you need to add a translation file such as en_us.json to your resource pack and add a key for your slot.

For the image, this is a known issue that I'll need to address.