Speeds_Arrow Posted September 1, 2021 Posted September 1, 2021 (edited) 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, 2021 by Speeds_Arrow Quote
poopoodice Posted September 1, 2021 Posted September 1, 2021 You can set it through Item Properties Quote
Speeds_Arrow Posted September 1, 2021 Author Posted September 1, 2021 (edited) So I have to put my own model json ? Or is there a way to do It in code ? Edited September 1, 2021 by Speeds_Arrow Quote
poopoodice Posted September 1, 2021 Posted September 1, 2021 What do you mean? I thought you were asking how to bind your own ISTER to the item? Quote
Speeds_Arrow Posted September 1, 2021 Author Posted September 1, 2021 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. Quote
poopoodice Posted September 1, 2021 Posted September 1, 2021 Sorry for the confusion, I mean the Item.Properties where you pass in to Item's constructor :P Quote
Speeds_Arrow Posted September 1, 2021 Author Posted September 1, 2021 But I don't register vanilla Item so I cannot pass them a new Item.Properties Quote
Speeds_Arrow Posted September 1, 2021 Author Posted September 1, 2021 (edited) Wait I can register a vanilla item to change their properties ? Edited September 1, 2021 by Speeds_Arrow Quote
Speeds_Arrow Posted September 1, 2021 Author Posted September 1, 2021 I didn't find the field name of Item#ister Quote
Speeds_Arrow Posted September 1, 2021 Author Posted September 1, 2021 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 Quote
Recommended Posts
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.