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 remember there was one or two threads about it, but can't find them (using search and going WAY back in threads).

 

Basically, would it be possible to have ore.json and ore_model.json that would be used by e.g 10 blocks with different unlocalized name?

1.7.10 is no longer supported by forge, you are on your own.

[glow=red,2,300]I believe so![/glow]

 

The model is defined in the blockstate(i think) so just refer to the model from each block's blockstate. It can be used more than once, which is why you don't see models with different names that look exactly the same (not including texture).

Creator of the Starfield Mod.

  • Author

Yup, alredy figured it out, thanks.

Problem is a bit different.

 

Situation: Having 2 blocks:

Block oreCopper:

- unlocalized name: ore_copper

- uses: assets.mod.blockstates.ore_copper.json

Block oreTin:

- unlocalized name: ore_tin

- uses: assets.mod.blockstates.ore_tin.json

 

Those 2 blocks aren't meta-blocks (each has their own instance).

 

Now - Is it possible to:

Assign both blockstates to use:

assets.mod.models.blocks.ore_model.json

 

But pass 2 different textures from each (tin has different than copper).

 

I know I can do that by creating ore_copper_model.json and set parent to be ore_model.json and then inside ore_copper_model.json use textures: { } annotation to pass different texture to parent, BUT if i do this i will have to do ONE blockstate = ONE model (which is child of ore_model.json). And I would like to pass texture straight from blockstate (without using metadata variants).

 

Is such passing possible?

 

Edit: I don't think so. Well - assuming from what vanilla assets are doing.

 

Other question: When you are assigning model to be child of other model, how does it look inside memory - are you having 2 different-same models or one model and some smart memory-saving parent-child relation?

1.7.10 is no longer supported by forge, you are on your own.

sip

is posible yes, you must create the first json and define in this the first texture then asing a parental json to define the form of the block ,

then make the second block json define the second texture and set the same parental json ,

 

i must question if this two blocks are just one texture for all the faces (parental cubeall.json)  or is an multitexture (parental cube.json)

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.