Posted September 1, 20214 yr Hey, I need to change the texture of some items when its itemstack has a special tag. These are the trident, the shield and the other items rendered with the vanilla ItemStackTileEntityRenderer. I tried to look for the field name of the ItemStackTileEntityRenderer ister in Item.class in order to put my CustomItemStackTileEntityRenderer through reflection but I failed. So how can I achieve this ? Have a good day. Edited September 1, 20214 yr by Speeds_Arrow
September 1, 20214 yr Author So I have to put my own model json ? Or is there a way to do It in code ? Edited September 1, 20214 yr by Speeds_Arrow
September 1, 20214 yr What do you mean? I thought you were asking how to bind your own ISTER to the item?
September 1, 20214 yr Author Yes, but how do I bing my own ISTER through Item Properties ? I thought you were saying me to use the same way the bow change texture when you load it.
September 1, 20214 yr Sorry for the confusion, I mean the Item.Properties where you pass in to Item's constructor :P
September 1, 20214 yr Author But I don't register vanilla Item so I cannot pass them a new Item.Properties
September 1, 20214 yr Author Wait I can register a vanilla item to change their properties ? Edited September 1, 20214 yr by Speeds_Arrow
September 1, 20214 yr Author When using reflection i needs the field i want to change, "field_52d17" someting like this, I didn't manage to find the one of Item#ister
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.