Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.8.9] Modifying the models


heero
 Share

Recommended Posts

Hi,

 

I need some help to start with the Model system in 1.8.9 :

 

I want to create a block that can be rendered at different Y positions. the position depend on the block below. So I created an UnlistedProperty ("bottom_position")

Now I want to take the model defined in JSON and update the Y position before rendering.

 

I can't figure where to start. There is a lot of interfaces/class (ICustomModelLoader, ISmartBlockModel, ...) but the documentation is poor (or well hiden).

 

Can you give me a direction to begin with that stuff ?

 

 

Thx

Link to comment
Share on other sites

Could you elaborate on what you want.

 

I want to create a block that can be rendered at different Y positions.

 

Sentences like this just don't make sense. Any block can be rendered at any Y pos. I guess you ment "renders differently at different Y" - even if that is correct, that is still not enough apparently, because next thing you say is that block should not be based on Y pos, but on:

 

the position depend on the block below.

 

Fix your question.

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

Link to comment
Share on other sites

Hi,

 

Sorry, not realy good with english, hard to explain myself.

 

So I have some sort of slab block in my mod ( like the stone slab and wood slab in vanilla). Then I have some "special blocks", and when they are placed over a slab block, I want to render them like they where touching the slab ( so posY - 0.5 to be simple).

I have many of theses "special blocks" with all kind of differents properties, and I don't want to duplicate each model and decrement the Y position. I want to dynamically shift.

 

So I need to :

1) Check the block below and assign the right value to the unlistedproperty (that part is good)

2) Intercept the model and modifying the Y property of each quad

 

Is that clear ?

Link to comment
Share on other sites

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

 Share



×
×
  • Create New...

Important Information

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