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

I'm creating a Harry Potter mod, where you can create your own wand. What I was thinking to do is you start with a base wand texture, then you add the customisation. For example:

 

9h7syK8.png <- Base Wand

oe0TxDU.png <- Customisation 1 RvYY1bp.png <- Customisation 2

WXC6KWu.png <- Final Wnad

 

So, how could i do that? I totally lost on the new models and blockstate system added. Anyone could please help? By now i just have a base mod.

You could point each metadata to a different model and add multiple layers by doing.

 

{
     "parent": "item/generated"
     "textures": {
          "layer0": "texture1"
          "layer1": "texture2" #etc
     }
}

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.

  • Author

Thanks! But i would have to create a model for each possible combination? Or can i put more than one model for item, so they mix? How would it work?  ;D

I had this working once before the "Blocks and Items and everything needs to be a JSON" I got it from looking at Tinker's Constructs code on how they handle their tools (they do alot more than just custom handle and end) at some point I might have a gander at their code again and see how they updated it to work with 1.10.2+

I've been reading the documentation, the problem is they don't explain you how to use blockstates with Items, i don't even know if it is applicable to Items.

 

Items don't have blockstates, although you can use the system for it.

 

When I wrote my code I was writing this in my client proxy (things have been refactored to make it a common object that all of my dependent mods can then access), but this is what I did:

 

https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L86

 

The interface IMetaLookup was just a custom interface I apply to all of my variant enums so that I can convert between variant and metadata and back.  You should already have those methods, I just encapsulated them into a common interface.

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.

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.