Jump to content

[1.13.2]Modding Questions


LaRoso

Recommended Posts

Hello Modding Community,

I'm relatively new to minecraft modding, and I'm sure I will have a lot of questions, so I open up this thread to bundle them.

 

On creating a new item: I have a png now in my textures.item folder. How exactly do I use and register it now?

 

Also, this is my project: https://github.com/LaRoso/DIYDiamonds 

I'm not entirely sure how to use GitHub, but I do, what I think is right :)

Link to comment
Share on other sites

Are you asking how to create and register an Item, or how to add a model (and texture) to an item?

 

Also, your modid won’t work, modids need to all lowercase. 

A Mod Id is a unique identifier for your mod. It must be between 8 and 64 characters and be made up of only lowercase alphanumeric letters (a-z and 0-9), dashes (-) and underscores (_).

 

 

 

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

 
 
 
12 minutes ago, Cadiboo said:

Are you asking how to create and register an Item, or how to add a model (and texture) to an item?

former.

 

 
 
 
2
13 minutes ago, Cadiboo said:

Also, your modid won’t work, modids need to all lowercase. 

Oh yes thanks, dunno how that could have happened

Link to comment
Share on other sites

You can see a tutorial I have on this here (it isn’t quite finished yet). You’ll need to create a new item and register it in the RegistryEvent.Register<Item> event inside an event subscriber subscribed to the mod event bus. 

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

 
 
 
2
1 hour ago, Cadiboo said:

Also, your modid won’t work, modids need to all lowercase. 

I think I fixed it everywhere. But when I try to run it, it says "Skipped language file: diyDiamonds:lang/en_us.json (net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: diyDiamonds:lang/en_us.json)"

and

"net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: diyDiamonds:sounds.json"

I don't have a sounds.json nor a en_us.json

Where does that come from, and how to fix it?

crash-2019-06-07_03.10.44-client.txt

Link to comment
Share on other sites

diyDiamonds contains a character that is not in the ranges a-z, 0-9, or _, or, - or ..

 

That is, it contains a D which is not a d.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

45 minutes ago, Draco18s said:

or .

Why tf are dots now allowed in modids

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

8 hours ago, Draco18s said:

diyDiamonds contains a character that is not in the ranges a-z, 0-9, or _, or, - or ..

 

That is, it contains a D which is not a d.

Yes, I did that, but it still says that. You can look at the GitHub. Maybe you find, what I missed

 

EDIT: I just made a new project and copied the files there. It's working now, I guess

Edited by LaRoso
I "fixed" the problem
Link to comment
Share on other sites

Let me guess, you’re using Eclipse?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

13 hours ago, Cadiboo said:

Why tf are dots now allowed in modids

Dunno.  All I know is that is what that says.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

In 1.13.2 item models are registered for you, it’s dead simple. Just have a model json in your assets/<modid>/models/item/ folder

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

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.