Jump to content

Recommended Posts

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.

Posted

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

Posted

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.

Posted

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

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