Everything posted by Draco18s
-
[1.7.10] Model Box help
- [1.8] Render Item In Block
Well. What Type is renderManager ?- Placing a block, clearing inventory.
This does not set the inventory stack to null, it sets your local variable to null. ItemStack myStack = inventory.getStackInSlot(i); //whatever myStack = null;- [1.7.10] How to stop tile entity from reading nbt data on first place
Packets.- [1.7.10] [SOLVED] Wool clone (block with metadata) not using textures provided
It might not crash but the log will contain a message that it could not find a texture.- [1.8] Render Item In Block
Well, I know that startDrawingQuads(); changed to startDrawing(7); (IIRC. Also, the 7 is the integer value of.... GL11.GL_QUADS if I got that right). Now, look inside the WorldRenderer class and see if you can find the name for the other method yourself.- [1.8.9] no textures
[FML/]: Exception loading model um:item/unstable_ore with loader instance, skipping com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 5 column 6 Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 5 column 6 Your JSON is malformed.- [1.7.10] Generating textures during startup
Use multiple passes and several textures. That's how my artifacts mod does it. https://github.com/Draco18s/Artifacts/tree/master/main/java/com/draco18s/artifacts/- [1.7.10] [SOLVED] Wool clone (block with metadata) not using textures provided
Do you ever call setTextureName() ? Did you include the error log worth your post?- [1.7.10] Holographic Text
Look at name tags- Help, modified modpack makes old saves crash
Change the- [1.7.10] Add recipes for every item that extends a specific class
Weight on enchantments is how common it is. If there were only 3 enchants and they had weights: A: 1 B: 2 C: 4 Then the odds of getting B would be 28%, double that of A (14%) and half that of C (57%) For an available ID, there is not a function for that as far as I am aware. Mine are config-valued.- [SOLVED][1.8.9] Water Bridge Decay problem
https://howtoprogramwithjava.com/java-cast/- Help, modified modpack makes old saves crash
Dimension ID 7, huh. Did you recently add any mods to an existing world? The usual culprit is TwilightForest, which uses a config-value for its dim ID, but if its added to a save that already had Mystcraft and Mystcraft already registered dimID 7 (which would be the sixth age, IIRC) then it'll conflict. Also, XCW doesn't read his Minecraft Forum thread any more, you'd have been better off posting at http://xcompwiz.com/forum/index.php- [SOLVED][1.8.9] Water Bridge Decay problem
The problem is that he doesn't know how to use world.getBlockTileEntity() and cast it to his own object, then call a method on it.- Weak Reference
https://docs.oracle.com/javase/7/docs/api/java/lang/ref/WeakReference.html It's a generic.- Odd Ore Generation | 1.8
Correction: You debugged that area of the program and found no oddities. You have not debugged the calls to WorldGenFeature .generate()- [1.8.9][SOLVED] Extended Entity Properties
Sync should never be two way, it should only be server -> client- [SOLVED][1.8.9] Water Bridge Decay problem
See that "//ONLY PLACE BLOCK ONTOP OF WATER/IN AIR" chunk? Make it look for your own block too, and if it finds it, update the integer in the TE.- Losing inventory on world close
https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/entity/TileEntityDisplayPedestal.java#L205-L243- [SOLVED][1.7.10] Tile Entity NBT not saving
Well, your read/write methods are saving sides and the energy, but not anything else. I also wouldn't trust "sides" to be sufficiently unique to avoid collision with something else. As for your log method, try using System.out.println() instead, I am not sure what the LogHelper class is and how it works, but a line printed directly to the console should show up.- [1.8.9] Rendering items inside item.
And this is why I haven't updated any of my mods. <3- [1.8.9] Changing the Values of Bow Damage
Just to jump in real quick. While not required, there are totally legitimate reasons to do untyped code blocks. I was working on something just the other week where I wanted to tab stuff in just to reduce the mental gymnastics necessary to understand what it was doing, and the IDE kept untabbing it, so I said "fuck it, code block." Incidentally, code blocks also add another level of local scope. int v = 1; { int v = 2; System.out.println("v is " + v); //prints 2 }- [SOLVED][1.7.10] Tile Entity NBT not saving
Yeah, do that. Without it your post is useless and we can't help you. You may as well have waited to post until you got home.- [1.7.10] Entity Explosion Is Only Visual, No Block Are Registered As Broken
Turns out I misremembered something. doExplosionB(bool) is what actually destroys the blocks, there's no flag for it, it just does it. - [1.8] Render Item In Block
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.