-
Mincraft forge for minecraft 1.4.5
Right here: http://files.minecraftforge.net/
-
Would love access to a couple of methods in PlayerManager.java
Actually, this is much easily done with Reflection.
-
TileEntitySpecialRenderer custom block model issues....
My suggestion is to load tile entities in the @Init method, not @PreInit. Try that.
-
Hook for Biome-Compliant Slime Spawning
You could use ASM transformers to override the classes...
-
Overriding core method canCreatureTypeSpawn
Couldn't you just make the relic check for hostile mobs around it every second or so? That seems like the easiest way to go.
-
[Solved] Restoring texture overwrites for custom textures
Just thought to let you know that this has been fix in build #379. You can see the changelog here: http://files.minecraftforge.net/minecraftforge-changelog-6.4.0.380.txt
-
Making items have a custom model when held
Yes, ITEMID is the shiftedIndex. You don't need to register a model for it, just render the model when the renderItem method is called. Just make a model like you would for an entity, except you don't to register anything except for the item renderer.
-
A New Idea
Nuuu, we trademarked them as "glowy floaty ball things". ;P
-
Making items have a custom model when held
This is pretty easy to do, actually. Use the IItemRenderer interface to override item rendering. Here's an example: package whatever; import net.minecraft.src.*; import net.minecraftforge.client.IItemRenderer; public class TestRenderer implements IItemRenderer { public boolean handleRenderType(ItemStack item, ItemRenderType type) { if (type == ItemRenderType.EQUIPPED) { return true; } return false; } public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { return false; } public void renderItem(ItemRenderType type, ItemStack item, Object... data) { if (type == ItemRenderType.EQUIPPED) { RenderBlocks blockRenderer = (RenderBlocks)data[0]; EntityLiving entity = (EntityLiving)data[1]; // entity holding the item // render item here } } } Register it like this in your client proxy: MinecraftForgeClient.registerItemRenderer(ITEMID, new TestRenderer());
-
A New Idea
Like this? This is part of the upcoming Betweenlands mod.
-
NetServerHandler.handleChat event hook please.
It's quite simple actually. Create a class that implements IChatListener. public class ChatHandler implements IChatListener { public Packet3Chat serverChat(NetHandler handler, Packet3Chat message) { //handle server chat } public Packet3Chat clientChat(NetHandler handler, Packet3Chat message) { //handle client chat } } Register it like this in your Init method: NetworkRegistry.instance().registerChatListener(new ChatHandler());
-
Requesting OGL context with stencil buffer from within a mod
Hello, From what I can tell, there is no way to request a stencil buffer without editing the Minecraft class. That shouldn't be to much a problem. I don't know of any popular mods that edit that class unless it's some noob who can't use reflections. Also, Optifine doesn't edit it. So, you have tow options. Edit the class or change your code so it doesn't require a stencil buffer. Either work would work.
-
[Solved] Syncing TileEntity data
Add these methods to your tile entity class. public Packet getAuxillaryInfoPacket() { NBTTagCompound tag = new NBTTagCompound(); this.writeToNBT(tag); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, tag); } public void onDataPacket(NetworkManager net, Packet132TileEntityData packet) { NBTTagCompound tag = packet.customParam1; shadows = tag.getInteger("shadows"); }
-
Suggestion: Stop being such an prick
I don't see how Lex being a prick will stop people from using the most useful Minecraft API that exists.
-
Replacing / Removing a placed block
um. world.setBlockId(x, y, z, 0); ?
IPS spam blocked by CleanTalk.