Jump to content

[1.13.2] issues understanding item models/textures and what is required to open an basic gui from an item in the hand


Recommended Posts

Posted

I am a new modder basically trying to learn from scratch this summer, and I don't understand why when I load up the mod it can't find the model for the item adamantine_ingot (leaving a link to my GitHub below) and moved on to making other items without texturing them. Also, need one of my items to open a GUI from a hand and I don't understand what is all necessary to make one open. Like is it necessary for every type of GUI to have a newly registered handler(if so what is necessary for new handlers) or how many things need to be fulfilled? Also, what is the difference between playerin.displayGui() and NetworkHookup.OpenGui()? If you look through the rest of my code I know that I haven't been doing things for both server and client sides but was more concerned in getting the basic idea to work in the first place.

 

Link to the model of adamantine_ingot: https://github.com/SRGTOblivious/BlocksAndBeholders/tree/master/src/main/resources/assest.blocksandbeholders

 

link to the main page of Github: https://github.com/SRGTOblivious/BlocksAndBeholders

Posted
6 hours ago, PhilipChonacky said:

When you declare a texture, don't add the "PNG" suffix, it's implied

[example here]

Also, your setup method seems a rather roundabout way of simply adding a .setRegistryName to your registry entry [other example].

 

I'll have to leave the GUI question to someone else as I haven't tackled on of those since 1.7

 

/P

I had tried a bunch of stuff, and went and did those fixes. But nothing. In fact, the weird thing is I followed the harry talk video the first time trying it and got everything to work except my texture and though it seems my syntax is the exact same it doesn't see the model in the first place. updating git hub to what it is now

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.