Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

hi I am new to minecraft coding its all so different I looked at many tutorials but non of them seen to fix the black and purple block texture. I have managed to register the name and the item into the game with out the item.itemname.name showing there. I think It is something with the json file or something but it would be good to get some help.

 

console log:

 

json code:

Spoiler

{
    "parent": "item/generated",
    "textures": {
        "layer0": "lfm:items/itememptycan"
     },
      
    "display": {
        "thirdperson": {
            "rotation": [-90,0,0],
            "translation": [0,1,-3],
            "scale": [0.55,0.55,0.55]
        },
        "firstperson": {
            "rotation": [0,-135,25],
            "translation": [0,4,2],
            "scale": [1.7,1.7,1.7]
        }
    }
}

 

 

package pic:

Spoiler

code:

Spoiler

edJlry5.png

 

 

 

 

 

 

Ok, zeroth, NEVER EVER POST CODE AS IMAGES. JESUS.

 

1) You need to use the RegistryEvents, you can't just shove items into the registry like that. You have to do it at the proper time in the proper way.

2) You can't use ModelLoader.setCustomModelResourceLocation in common code, it is marked as SideOnly(CLIENT) so you must call that through your proxy

3) You aren't even calling registerRenderer anyway

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.

  • Author
5 minutes ago, Draco18s said:

Ok, zeroth, NEVER EVER POST CODE AS IMAGES. JESUS.

 

1) You need to use the RegistryEvents, you can't just shove items into the registry like that. You have to do it at the proper time in the proper way.

2) You can't use ModelLoader.setCustomModelResourceLocation in common code, it is marked as SideOnly(CLIENT) so you must call that through your proxy

3) You aren't even calling registerRenderer anyway

kk

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.