Everything posted by Animefan8888
-
[1.11] Capability Display not updating.
No your MessageHandler not your ManaSyncMessageClient.
-
[1.10.2] Model acting different depending on dimension
Is it always blacked out in the overworld? Is it always perfect in the end? What about the nether?
-
[1.11] Capability Display not updating.
Try adding a zero argument constructor to your MessageHandler.
-
[Solved][1.10.2]Blockstate.json PropertyEnum & PropertyBool
Why is "cover" an [] and why are you writing "variant=oak".... take a look at the docs. http://mcforge.readthedocs.io/en/latest/blockstates/forgeBlockstates/
-
[1.11] AttachCapabilitiesEvent#addCapability forced lowercase issues
This sounds like a moment for a PR.
-
[1.11] Capability Display not updating.
You should be sending the message to the client and you just copied the code diesieben made... Look at that nice comment he left // or Minecraft.getMinecraft() on the client Plus you never check if the player has your capability anymore. Last thing I would name your message something like ManaSyncMessageClient. This way you know that it is a client recieved message and what it does specifically.
-
[1.11] Capability Display not updating.
No not like that if you look at the tutorials message handler implementation you will see he uses a IThreadListener. This is because the game has its own thread and the network has its own thread. Also you should have a setMana method in your capability somewhere to do this. One last thing did you really make a IMessage implementation called Messages?
-
[1.11] Capability Display not updating.
Packet#toBytes() is your write and Packet#fromBytes() is your read. So ByteBufUtils.writeVarInt(to, toWrite, maxSize); ByteBufUtils.readVarInt(buf, maxSize); // OR buf.writeInt(value); buf.readInt();
-
[1.11] Capability Display not updating.
It is indeed a networking thing, you will need to use packets. But don't worry packets are easy. Diesieben has a great tutorial on them and the network itself. http://www.minecraftforge.net/forum/index.php?topic=20135.0
-
[1.10.2] Making recipes off OreDictionary is not working
Why not try it in the final loop or even in the Recipes.addEnrichment(...) method.
-
[1.8.9] Errors reading JSON from URL
MalformedJsonException, it says what to do in the crash report, you should also look at your JSON.
-
[1.10.2] Keep text above player head from "dimming"
Try GLStateManager.disableLighting(); And if that doesn't work post your rendering code.
-
[SOLVED] [1.10.2] Proper TileEntity rendering
Tesselator is not gone in 1.10.2.
-
[1.11] Finding if a TE inst existent.
Compare blockpos of the TEs.
-
[1.11.X] Compass to point to your personal spawn point
It is because you are using the IItemPropertyGetter inside your constructor, so the players spawn point wont change, because the constructor is only called once.
-
[1.11] Finding if a TE inst existent.
Close but in your validate method call worldObj.getTileEntity(te.getPos()) == null instead of if the pos is null.
-
[1.10.2] Any idea how I would go about creating a custom book?
Side note only use a GuiHandler if you have both a Container and a Gui otherwise just use Minecraft.getMinecraft().displayGuiScreen(new GuiBook());
-
[1.11] Finding if a TE inst existent.
Your code won't work because you are checking to see if the worlds version of the te is invalid. Really the simplest way to do this would be to loop through like you are, but without the invalid check and only add. (Side note why do you need a map? The TE stores its BlockPos). Once you have added them check through the currently a map for TEs that are invalid. Or check if the TE still exists in the World by doing World#getTileEntity(listTE.getPos()) != null. Or similar.
-
[1.8.9] Extending the Chat Character limit to 256
I don't suppose there is an event for Chat Opened in Forge? There is an OpenGui event look under the net.minecraftforge.events package
-
[1.10.2] Any idea how I would go about creating a custom book?
Make a book, make a gui. Make right click open the gui. Finally add content ie pages to the gui.
-
[1.11] [solved] Casting Capabilities.
You created your own Provider and did not post the class.
-
How to add food (1.10.2)
Well I'm new to java so I just added this to my ItemGooseberry, but it creates an error public class ItemGoosberry extends ItemFood { Learn Java then come back, we are not here to teach Java.
-
[1.11] Problem With Sending Info to TEs
Forge provides a Energy Capability you just need to override getCapability and hasCapability in your TE. This is also what you should be doing for inventories using the IItemHandler capability. Look at the forge docs http://mcforge.readthedocs.io/en/latest/datastorage/capabilities/
-
[1.11] NBT does not save upon rebooting the game.
First update tick if you need to access the blocks/other TEs otherwise onLoad() is what you should use.
-
[1.10.2]GuiContainer: draw texture in foreground of an item in slot
You will have to draw something to the screen over it.
IPS spam blocked by CleanTalk.