Alexiy
Forge Modder-
Posts
198 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Alexiy
-
Is it so hard to run in debug mode and see what variable is null?
-
How would I check for a type of block at a specific location?
Alexiy replied to Althonos's topic in Modder Support
Rather than using unlocalised name, use identifier from Block.blockRegistry.getNameForObject(). Chest's must be "minecraft:chest". -
Saving A ForgeDirection[] to NBT [SOLVED] [1.7.10]
Alexiy replied to TheEpicTekkit's topic in Modder Support
This: public void readFromNBT(NBTTagCompound nbt) { super.readFromNBT(nbt); for (int i = 0; i < connections.length; i++) { this.connections[i] =ForgeDirection.getOrientation( nbt.getInteger("connections_" + i)); } } -
Machine doesn't save inventory contents when reloaded [1.7.10]
Alexiy replied to iLegendx98's topic in Modder Support
I've realised I missed the "markDirty" thing. All my tile entities were saved only on auto-save 8|. So remember kids, markDirty() on the server. -
You need to add this to tile entity: @Override public Packet getDescriptionPacket() { NBTTagCompound tag = new NBTTagCompound(); writeToNBT(tag); return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag); } @Override public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) { readFromNBT(pkt.func_148857_g()); } This is supposed to solve not saving, because it synchronises tiles.
-
You've got to use deobfuscated versions of mods. Some people provide them, some don't. If not provided, you can deobfuscate mods using Bearded Octo Nemesis. There is an article on that, try searching.
-
Try GL11.glEnable(GL11.GL_TEXTURE_2D) before drawTexturedModalRect.
-
[1.7.10] Gui setting variable in Tile Entity?
Alexiy replied to robertcars's topic in Modder Support
In "onDataPacket" get the world from "MessageContext ctx"and then you can get the tile entity from coordinates you have to send additionally. -
I don't understand this - "The issue is that I can see the sides of other blocks of my glass through one of my glass block"
-
[1.7.10] Adding Player Inventory slots to GUI screens
Alexiy replied to timoteo2000's topic in Modder Support
You must return a container in getServerGuiElement. Also, remove if(world.isRemote) in onBlockActivated. -
Somebody, show me run configurations for Intellij because neither gradlew idea or eclipse generate one.
-
Well, many of qualitative mod makers are already software developers. They have the knowledge and the experience. Others are self-taught (including me), they have been following various tutorials at MC forum and forge wiki. Knowing java at intermediate level is a prerequisite for modding, and recently, Gradle too. Once you know Java well, you can start from simple things like adding blocks and items. Reading other mods' source helps much. Can also ask non-noob questions at Forge chat.
-
I just started porting mods to this 1.7 Gradle things. What I have is 2 mods that use stuff from my shared library. Intellij can't have multiple projects open, right? How do I set it up so I have 2 mods and they see that shared library?
-
[How-To]Build multiple separate projects with Gradle
Alexiy replied to GotoLink's topic in ForgeGradle
This looks complicated at a first glance. So now we have to learn Groovy if we want to understand what gradle does and how to configure it? And where I can see what all those tasks do exactly (source)? -
[SOLVED][1.6.4] Can't get GameRegistry.findItem to work :/
Alexiy replied to Titanium237458's topic in Modder Support
Probably line "public static Item thaumResource = GameRegistry.findItem("Thaumcraft", "ItemResource");" is being executed before Thaumcraft registers the item. Make your mod load after thaumcraft and see if it fixes. -
What does the crash say?
-
GUIs are made by extending GuiContainer or GuiScreen. If your GUI will have slots, extend GuiContainer; otherwise, extend GuiScreen. See tutorials on the wiki - http://www.minecraftforge.net/wiki/Category:Tutorial
-
One must add dev. versions of Codechickencore and NEI to referenced libraries. Is this what you did?
-
From my experience, there is no method which doesn't notifies neighbours. You'll have to copy setBlock method and delete code which does notifications.
-
This is exactly as I do. And consider dependencies - after, required-after...
-
This is resolved by Loader.isModLoaded(ID). ID is the @Mod's modid String.
-
If someone made a Java implementation of multitile/multipart, would it be included in Forge?
-
[SOLVED]Rendering Block (that has a custom model) In Inventory
Alexiy replied to TLHPoE's topic in Modder Support
What version? In 1.6 to render block in inventory customarily (or customly?) one has to implement ISimpleBlockRenderingHandler, its method renderInventoryBlock() and return true in shouldRender3DInInventory(). -
Use ItemToolTipEvent.