February 16, 201510 yr Well, I have wondered this as well. You could try overriding randomDisplayTick in your block class, then using the world parameter get the block you want to change the texture of using the coords, then use setTextureName. Just a wild guess.
February 16, 201510 yr I want to change the texture of an item not a block :-) Oh, lol, I read wrong. I'll do more research.
February 16, 201510 yr Ya now that I think of it, we would need to know that. I was thinking maybe PlayerTickEvent could help but it would be easier if you could override a method in the item class instead of creating a new class.
February 16, 201510 yr Author It needs to change when I press the L key but I have the key event already
February 16, 201510 yr Author But I want to have a sword that changes texture. Can swords have metadata Ps: I am a beginner
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.