Fyreek
Members-
Posts
4 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
Fyreek's Achievements
Tree Puncher (2/8)
0
Reputation
-
[1.7] Getting Texture from Block and put it on an other Block.
Fyreek replied to Fyreek's topic in Modder Support
1. I know what static means, but if i have it not static the line this.setBlockTextureName(BlockRedTileEntity.BlockStored.getBlockTextureFromSide(0).toString()); is not working, because it needs a static reference. 2. If i right click the Block it works, so i think that shoudl be right 3. Thats not my Problem atm. i first want to try to get it to work, so that it changes textures. But that is not working. Saving and Loading i want to do later. -
[1.7] Getting Texture from Block and put it on an other Block.
Fyreek replied to Fyreek's topic in Modder Support
So i tried a few things but couldnt get it to work. i tried saving the Block in the TileEntity and then getting the BLocks Texture through the Tile Entity, but my game wont load up any more. I think i am doing it copletly wrong but i dont know what to do at the moment. Error: BlockRedTileEntity.class: BlockRed.class: I hope you can help me. -
[1.7] Getting Texture from Block and put it on an other Block.
Fyreek replied to Fyreek's topic in Modder Support
I don't know which Block/Item should be a TileEntity. Should the item be it? Because i right click with it? Or the Block that that will be on the Position of the Block i replace? Also i dont know how to save the blocks instance. I searched a bit but cant find anything that would help me. -
Hello There, I am very new to modding. I am having a problem with one of my Items. When i click on the ground with it, it switches the block i am looking at with a block i made. Now the Problem is how to get the Texture of the block that was there and apply it to my own Block, so that my Block looks like the Block that was there before. I already now hot to get which block was there before, but i cant figure out how to know which texture it uses and how to apply the new texture to my Block. Is that even possible? Would be nice if someone could answer that. Fyreek.