-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
Putting quote marks around things does not make them important. http://www.unnecessaryquotes.com/
-
[1.5.1]public boolean used in diffrent class
Draco18s replied to rasmustof's topic in Modder Support
And where is this function? -
[1.5.1]public boolean used in diffrent class
Draco18s replied to rasmustof's topic in Modder Support
If it's not a static variable, then you need a reference to an instance of that class. -
How to tell if a player is on multiplayer?
Draco18s replied to CaptainMiner's topic in Modder Support
Technically SSP is SMP, the server is just on localhost. This has been true since 1.4 I believe. The annotation EnergyPulse gave you is not going to help you. -
Just to be a complete dick:
-
It's like ChickenChunks. There's a core (the "api") and then there's each mod. Or BuildCraft. There's the base mod, then all the extensions (as child mods)
-
Multiple textures for blocks (top, side, bottom etc.)
Draco18s replied to teunie75's topic in Modder Support
That would be using the metadata. if(side == meta) {return front } -
How do you get a spawn egg into a custom creative tab?
Draco18s replied to Jacknoshima's topic in Modder Support
Let's try the Forge version. Which I got to by opening up ModLoader.java and finding that function, because FML is just a remapping of ModLoader functions to Forge functions. LanguageRegistry.addStringLocalization(key, lang, value); -
How do you get a spawn egg into a custom creative tab?
Draco18s replied to Jacknoshima's topic in Modder Support
Oh well. At least that line is floating around now for searches. I managed to find it only by accident when helping someone else. My question for you, if you've done it, is how do you localize the entity name? Mine keeps coming out as mod.[ent name].entityliving or somesuch. -
I've got a Git repository I can backtrack to, it's just annoying as hell at this point to do so, because the error I was working on fixing spans three different classes. Frak. Edit: Went back to my git version and still got the error. I think it's that save that's fubar'd.
-
[UNSOLVED] Adding a new method to a base class, without changing it?
Draco18s replied to HydroBane's topic in Modder Support
I think the idea is that he wants the function on vanilla blocks as well. -
While messing around with a data sorting and storage problem, this error started up. It happens once a tick and I have no idea why, as none of the code I'm working with deals with living entities (although I do have four in my mod, none of them should be in the world and last I checked, they rendered just fine). 2013-06-22 17:37:17 [iNFO] [sTDERR] java.lang.NullPointerException 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderLiving.func_77031_a(RenderLiving.java:136) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderLiving.func_76986_a(RenderLiving.java:546) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderManager.func_78719_a(RenderManager.java:310) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderManager.func_78720_a(RenderManager.java:279) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderGlobal.func_72713_a(RenderGlobal.java:508) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1150) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:991) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:871) 2013-06-22 17:37:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:760) 2013-06-22 17:37:17 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)
-
BlockDescriptor is a Mystcraft API class, it contains block ID, block metadata, and an instability function that returns an integer. I'm trying to sort the array from lowest to highest instability (so that the most unstable material is rarer than the more stable materials). For some reason, allBlocks[0] is ended up as the most unstable (between the 4 blocks I've been using as a test), but the rest of the array is sorted correctly. Input order is Dirt, Diamond Ore, Coal Ore, Birtch Logs (instability values of 0, 1000, 100, 0 respectively). Output order is Diamond Ore, Dirt, Birtch Logs, Coal Ore. What is wrong with my sort function?
-
How do you get a spawn egg into a custom creative tab?
Draco18s replied to Jacknoshima's topic in Modder Support
EntityList.addMapping(MobEntity.class, "Mob", mobID, baseColor, secondaryColor); Edit: Had the egg code wrong. This will work better. As for getting them into a custom tab, I don't know. -
[SOLVED] Developing with the Buildcraft API
Draco18s replied to EnergyPulse's topic in Modder Support
You're welcome. -
[SOLVED] Developing with the Buildcraft API
Draco18s replied to EnergyPulse's topic in Modder Support
Good luck doing it any other way. The way...Pahimar sets up his code might work, but I never got my eclipse working that way. And there's literally nothing bad about putting it with the rest of your source code. Yes it'll get reobfuscated, but you don't need to add it to your release zip. -
[SOLVED] Developing with the Buildcraft API
Draco18s replied to EnergyPulse's topic in Modder Support
Download the API. Extract the zip into your /src/minecraft folder. -
Yes. TickRegistry.registerTickHandler(new MyGui(), Side.CLIENT);
-
Or use MultiMC, MagicLauncher, or another mod manager.
-
Tile Entity Syncing [Solved and vanilla bug found]
Draco18s replied to hydroflame's topic in Modder Support
Like I said, twice. Both times server to client. -
Tile Entity Syncing [Solved and vanilla bug found]
Draco18s replied to hydroflame's topic in Modder Support
Then you know more than I do. I've dealt with packets like twice, both times I used Packet250. -
Tile Entity Syncing [Solved and vanilla bug found]
Draco18s replied to hydroflame's topic in Modder Support
TileEntity has this function called... public Packet getDescriptionPacket() { return null; } You need to overide that, have it create a packet with the new data, then PacketDispatcher.sendPacketToServer(packet) Which then the packet will asrive at the server and you'll need to override public void onDataPacket(INetworkManager net, Packet132TileEntityData pkt) { } To read the packet, and also send that data back to all players. -
Tile Entity Syncing [Solved and vanilla bug found]
Draco18s replied to hydroflame's topic in Modder Support
You need the magic of PACKETS! And a packet handler! Packet250CustomPayload ahoy! -
The magic of Forge methods. EntityRegistry.addSpawn(...) EntityList.entityEggs.put(...)
-
How can I say "If block X is powered, my block should be powered"?
Draco18s replied to Flenix's topic in Modder Support
On neighbor changed -> isProvidingWeakPower(x, y, z)