Jump to content

Recommended Posts

Posted (edited)

Been a while since i modded minecraft and coming back to it a lot has changed since 1.7.10, i've been able to get my custom item and block to register using the new registry events the blocks in world texture even loads but none of my textures load when in my inventory, weird thing is i get no errors when game loads so i feel like i've done nothing wrong

 

if anyone could let me know what i've done wrong to make my items / blocks in inventory not load there textures that would be very helpful

 

In Game screenshot

Src - Workspace

 

Log

  Reveal hidden contents

 

Edited by WARDOGSK93
Solved
Posted
  On 7/18/2017 at 9:25 PM, WARDOGSK93 said:

Been a while since i modded minecraft and coming back to it a lot has changed since 1.7.10, i've been able to get my custom item and block to register using the new registry events the blocks in world texture even loads but none of my textures load when in my inventory, weird thing is i get no errors when game loads so i feel like i've done nothing wrong

 

if anyone could let me know what i've done wrong to make my items / blocks in inventory not load there textures that would be very helpful

 

In Game screenshot

Src - Workspace

 

Log

  Reveal hidden contents

 

Expand  

From what I saw of your project you don't register the Item models. You need to subscribe to the ModelRegistryEvent and register your models using ModelLoader.setCustomModelResourceLocation.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

You aren't registering am item model anywhere that I can see

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.

Posted
  On 7/18/2017 at 9:29 PM, Animefan8888 said:

From what I saw of your project you don't register the Item models. You need to subscribe to the ModelRegistryEvent and register your models using ModelLoader.setCustomModelResourceLocation.

Expand  

 

  On 7/18/2017 at 9:29 PM, Draco18s said:

You aren't registering am item model anywhere that I can see

Expand  

what arguments does `ModelResourceLocation` take? i see a `ResourceLocation` which i assume is the registry name of my block / item but what do i put in variant?

Posted
  On 7/18/2017 at 9:34 PM, WARDOGSK93 said:

 

what arguments does `ModelResourceLocation` take? i see a `ResourceLocation` which i assume is the registry name of my block / item but what do i put in variant?

Expand  

Put inventory.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 7/18/2017 at 9:41 PM, WARDOGSK93 said:

Thanks guys that fixed my issue :D

 

Screenshot

Expand  

You also need to add a @SideOnly(Side.CLIENT) to the top of your ModelRegistryEvent class and register it in your Client proxy. Otherwise it will crash the dedicated server.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 7/18/2017 at 9:46 PM, diesieben07 said:

@SideOnly is not needed here.

Expand  

Why is that isn't ModelLoader a Client only class and when loaded on the dedicated server won't it crash the game?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 7/18/2017 at 9:50 PM, diesieben07 said:

Yes. But if you only reference it from your client proxy, it will not be loaded on the dedicated server.

Classes (not methods!) are lazy-loaded.

Expand  

Ahh that makes sense, but is there any down side to marking it with @SideOnly?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

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.