Everything posted by Animefan8888
-
[1.10] A few tick rate questions
No he was saying you edit base classes then submit the change to forge ie you actually go into a .java file and edit the code to call an event. Hence the ForgeHooks call he was talking about. NEVER a coremod
-
[1.10.2] Custom Fluid Crash
Does your fluid have a ItemBlock for it? I don't think so you are trying to add a renderer for a ItemBlock that doesn't exist. Don't call registerRenderer for fluids because that is for items.
-
[Solved] [1.11] GUI Drawing confusion
Looks correct except for this int xCoord = this.pos.getX(); int yCoord = this.pos.getY(); int zCoord = this.pos.getZ(); They serve no purpose. Removed, it still doesnt fix the problem though When your data changes call markDirty();
-
Teleporting a Player Every Second.
Events are registered with MinecraftForge.EVENT_BUS.register() now no matter which one, and yes it does matter if you use Minecraft instance because that is a client side class.
-
[Solved] [1.11] GUI Drawing confusion
Looks correct except for this int xCoord = this.pos.getX(); int yCoord = this.pos.getY(); int zCoord = this.pos.getZ(); They serve no purpose.
-
[1.10] A few tick rate questions
This is not what we reccomended, making coremods is not supported by forge.
-
Teleporting a Player Every Second.
What? What Minecraft version are you using?
-
Teleporting a Player Every Second.
Does this ever get called? public static void init() { eventEffectTeleportation = new PotionEffectTeleportation(); GameRegistry.register(eventEffectTeleportation); } Plus
-
Actual State doesnt change unless world reload
Where did you implement dracos suggestion?
-
Actual State doesnt change unless world reload
- Teleporting a Player Every Second.
Caused by: java.lang.NullPointerException at com.lambda.PlentifulMisc.events.PlayerTickHandler.onPlayerTick(PlayerTickHandler.java:24) This is your problem, something is null on line 24.- Teleporting a Player Every Second.
Your code in the ServerProxy never runs because you never call it, and that is good because you are calling client code in server elements. FMLCommonHandler.instance().bus().register(new PlayerTickHandler(Minecraft.getMinecraft())); You should be registering your EventHandler in common code, aka your main mod class. Why do you have a Minecraft instance when you are given a EntityPlayer instance from the event.- Actual State doesnt change unless world reload
Look at the block in f3 and see if the state data on the right is what it is supposed to be.- ClientOnly message causes problem on server start.
One class for the handler and one more class for the message.- ClientOnly message causes problem on server start.
Is your IMessage and IMessageHandler the same class?- Actual State doesnt change unless world reload
When the data changes call a block update.- [1.10.2] Just another NBT read/write problem
update method is added by the interface ITickable and your getUpdatePacket and onDataPacket looks fine.- [Solved] [1.11] GUI Drawing confusion
You need to sync your data using onDataPacket and getUpdatePacket in your TilePulverizer.- [Solved] [1.11] GUI Drawing confusion
How do you know your TE gained energy from the other mods TE? Show us your Creative capacitor.- Block that holds only one item.
Sorry, its been a long time since i have had to save itemstacks, or rather type the line of code.- Block that holds only one item.
Youc could store an Items registry name. I don't know the code to save an ItemStack off of the top of my head, but all other storage TEs do it.- [1.10] A few tick rate questions
https://github.com/MinecraftForge/MinecraftForge- NBTTagCompound to bytes.
Look at SPacketUpdateTileEntity it passes a NBTTagCompound.- Block that holds only one item.
You are not saving what item you have.- Block that holds only one item.
Remove the semi colon at the end of this line then fix the syntax error that shows up if(jar.itemStored == null) { - Teleporting a Player Every Second.
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.