-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
Animefan8888 replied to EscapeMC's topic in Modder Support
Wait can you write out exactly what each thing needs to change to because ti still does not work and I have a feeling that I am just doing 1-2 thing(s) wrong. How should I do this? What should I make this class? (What type?) I don't think I can get anymore specific than what I said... And just a class that implements ICapabilitySerializable And in your ItemBag make a method called initCapabilities() Alright. So I've made this class. I called it "TestBagCapabilities" Now I created initCapabilities in test_bag. Now what? And the read/write NBT still isn't working.. Two things... Post your code or if you have a github put it on there and provide a link and every time your code changes update github. -
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
Animefan8888 replied to EscapeMC's topic in Modder Support
Wait can you write out exactly what each thing needs to change to because ti still does not work and I have a feeling that I am just doing 1-2 thing(s) wrong. How should I do this? What should I make this class? (What type?) I don't think I can get anymore specific than what I said... And just a class that implements ICapabilitySerializable And in your ItemBag make a method called initCapabilities() -
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
Animefan8888 replied to EscapeMC's topic in Modder Support
Change readFromNBT to deserializeNBT(NBTBase nbt) Change writeToNBT to serializeNBT() Don't make you Item implement ICapabilitySerializable make a new class that does, then override initCapabilities in your Item class. -
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
Animefan8888 replied to EscapeMC's topic in Modder Support
For what? My bag? (and that was an accidental thank you, but have it anyway ) OK, and yes. -
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
Animefan8888 replied to EscapeMC's topic in Modder Support
Then you should be good... could you post all of the code? -
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
Animefan8888 replied to EscapeMC's topic in Modder Support
Deserialize and Serialize mean to read and to write. Did you use IInventory for your Chest? -
Make frame a constant.
-
[1.11]hide non active hand when main is in use
Animefan8888 replied to perromercenary00's topic in Modder Support
He is talking about the item Map. And you could just use the RenderSpecificHandEvent and cancel when you are using the bow. -
So you don't want to learn TESR. A TESR is just a object attached to a TE that allows for dynamic rendering (rendering every frame). This requires the use of the rendering engine, OpenGL and the use of a Tesselator/VertexBuffer. Which is used to draw planes and form those planes into a 3D looking object.
-
Take this and add you if statements because this is copied from my LayerEnderDragonDeath with a few edits. Like position and the frame calculation.
-
(SOLVED) [1.11] Changing Texture/Model file on right click?
Animefan8888 replied to Rohzek's topic in Modder Support
Just the easiest way. Preferably if it doesn't involve just removing the item, and adding in another one. Modifing the metadata of the stack, and assigning the different metadata a different model when registered using ModelLoader.setCustomModelResourceLocation(...) -
(SOLVED) [1.11] Changing Texture/Model file on right click?
Animefan8888 replied to Rohzek's topic in Modder Support
It depends is it limited? Or can it be anything? -
This is what mine looks like. float f = ((float)frame + partialTicks) / 200.0F; Also remove the frame counter instead just increase it to a limit then reset to 0;
-
You would have to update isRunning on the client, just use a "frame" counter in your TESR to limit the render calls. Okay, trying to do whats on the git seems to make my screen flash white and lag.. a lot, like 10 fps. Solution float f = te.getWorld().getWorldTime() % 256; needs to be changed use your frame variable to understand what this does. You also need to translate to the x, y, and z correctly look at this line https://github.com/LambdaXV/PlentifulUtilities/blob/master/src/main/java/com/lambda/plentifulutilities/util/lib/DragonTESR.java#L46 I believe that is all.
-
You would have to update isRunning on the client, just use a "frame" counter in your TESR to limit the render calls.
-
Did you update the code?
-
Try setting it up so that your TESR only gets called once.
-
Add those lines back, and then switch the extension to a normal TileEntitySpecialRenderer. And then change renderTileEntityFast to renderTileEntityAt and remove the VertexBuffer parameter.
-
Could you post the error, I don't think it is the same error.
-
Why do you still have the Tesselator?
-
You cant have two instances of Tessellator tessellator = Tessellator.getInstance(); VertexBuffer vertexbuffer = tessellator.getBuffer(); At the same time. Use the VertexBuffer parameter.
-
[1.10.2] How to fill a known vanilla chest
Animefan8888 replied to bongotezz's topic in Modder Support
Create a new BlockPos... -
Oh derp, you need a new instance of DragonTESR for the third parameter not the class.
-
Yes I did mean ClientRegistry sorry about that. But change public class DragonTESR extends FastTESR { // To public class DragonTESR extends FastTESR<TileEntityRestorer> { And fix the error pops up with your IDE on the renderTileEntityFast method.
-
[1.10.2] How to fill a known vanilla chest
Animefan8888 replied to bongotezz's topic in Modder Support
TileEntityChest te = (TileEntityChest)worldObj.getTileEntity(BlockPos); te.setInventorySlotContents(index, stack);