Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.13.2]Modding Questions
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 2
LaRoso

[1.13.2]Modding Questions

By LaRoso, June 6, 2019 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

LaRoso    0

LaRoso

LaRoso    0

  • Tree Puncher
  • LaRoso
  • Members
  • 0
  • 14 posts
Posted June 6, 2019

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 :)

  • Quote

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
Posted June 6, 2019 (edited)

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 June 6, 2019 by Cadiboo
  • Quote

About Me

Spoiler

My Discord - Cadiboo#8887

My Website - Cadiboo.github.io

My Mods - Cadiboo.github.io/projects

My Tutorials - Cadiboo.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)

Share this post


Link to post
Share on other sites

LaRoso    0

LaRoso

LaRoso    0

  • Tree Puncher
  • LaRoso
  • Members
  • 0
  • 14 posts
Posted June 6, 2019
 
 
 
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

  • Quote

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
Posted June 6, 2019

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. 

  • Quote

About Me

Spoiler

My Discord - Cadiboo#8887

My Website - Cadiboo.github.io

My Mods - Cadiboo.github.io/projects

My Tutorials - Cadiboo.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)

Share this post


Link to post
Share on other sites

LaRoso    0

LaRoso

LaRoso    0

  • Tree Puncher
  • LaRoso
  • Members
  • 0
  • 14 posts
Posted June 7, 2019
 
 
 
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

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2403

Draco18s

Draco18s    2403

  • Reality Controller
  • Draco18s
  • Members
  • 2403
  • 15926 posts
Posted June 7, 2019

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.

  • Quote

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.

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
Posted June 7, 2019
45 minutes ago, Draco18s said:

or .

Why tf are dots now allowed in modids

  • Quote

About Me

Spoiler

My Discord - Cadiboo#8887

My Website - Cadiboo.github.io

My Mods - Cadiboo.github.io/projects

My Tutorials - Cadiboo.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)

Share this post


Link to post
Share on other sites

LaRoso    0

LaRoso

LaRoso    0

  • Tree Puncher
  • LaRoso
  • Members
  • 0
  • 14 posts
Posted June 7, 2019 (edited)
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 June 7, 2019 by LaRoso
I "fixed" the problem
  • Quote

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
Posted June 7, 2019

Let me guess, you’re using Eclipse?

  • Quote

About Me

Spoiler

My Discord - Cadiboo#8887

My Website - Cadiboo.github.io

My Mods - Cadiboo.github.io/projects

My Tutorials - Cadiboo.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)

Share this post


Link to post
Share on other sites

LaRoso    0

LaRoso

LaRoso    0

  • Tree Puncher
  • LaRoso
  • Members
  • 0
  • 14 posts
Posted June 7, 2019
Just now, Cadiboo said:

Let me guess, you’re using Eclipse?

Nope, IntelliJ

I tried it with Eclipse first, but it worked even less.

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2403

Draco18s

Draco18s    2403

  • Reality Controller
  • Draco18s
  • Members
  • 2403
  • 15926 posts
Posted June 7, 2019
13 hours ago, Cadiboo said:

Why tf are dots now allowed in modids

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

  • Quote

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.

Share this post


Link to post
Share on other sites

LaRoso    0

LaRoso

LaRoso    0

  • Tree Puncher
  • LaRoso
  • Members
  • 0
  • 14 posts
Posted June 7, 2019 (edited)

How do I get the texture onto my item? It's just an item used for crafting.

 

EDIT: I'm not sure. I think I should go back to 1.12.2 and make things there.

Edited June 7, 2019 by LaRoso
  • Quote

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
Posted June 8, 2019

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

  • Quote

About Me

Spoiler

My Discord - Cadiboo#8887

My Website - Cadiboo.github.io

My Mods - Cadiboo.github.io/projects

My Tutorials - Cadiboo.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)

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 2
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      Minecraft forge not fully loading

      By diesieben07 · Posted 20 minutes ago

      1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • BastouP
      [1.16.4] Get Overworld save directory

      By BastouP · Posted 20 minutes ago

      Yeah but I am creating a perpheral for computercraft that uses SQL. So i think using a sqlite file would be the easiest way. (You do not need to maintain a server.) However if there is another way I’d be glad to test it. Testing this this evening btw.
    • diesieben07
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By diesieben07 · Posted 21 minutes ago

      All living entities already have an armor and held item inventory, you don't need to add it manually. Look at LivingEntity#getCapability, it will return you IItemHandler instances for those inventories.
    • diesieben07
      [1.15.2] Render as 2D icon in GUI, 3D model in hand

      By diesieben07 · Posted 24 minutes ago

      Good question. I don't know much about rendering, so nothing comes to mind immediately.
    • diesieben07
      Forge unable to find model

      By diesieben07 · Posted 25 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  • Topics

    • Fars3O_
      1
      Minecraft forge not fully loading

      By Fars3O_
      Started 3 hours ago

    • BastouP
      3
      [1.16.4] Get Overworld save directory

      By BastouP
      Started 12 hours ago

    • Klarks
      1
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks
      Started 2 hours ago

    • Woodside
      15
      [1.15.2] Render as 2D icon in GUI, 3D model in hand

      By Woodside
      Started Sunday at 08:26 PM

    • CatSack
      1
      Forge unable to find model

      By CatSack
      Started 11 hours ago

  • Who's Online (See full list)

    • loordgek
    • diesieben07
    • XenoPyax
    • Choonster
    • Rhayzan
    • DevilishPoint
    • MrDuck20
    • Lucie
    • BastouP
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.13.2]Modding Questions
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community