Posted April 19, 20169 yr 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
April 19, 20169 yr 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.
April 19, 20169 yr Author 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 ?
April 20, 20169 yr Author So actualy I looking to wrap the VanillaLoader (or every loader ?) in my CustomLoader. Is that a good solution ? Is there an easy way to do that ?
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.