Everything posted by Draco18s
-
Ore Dictionary: get all ores
I'm not doing anything the base vanilla map code doesn't already do. You know how it updates the maps in vertical slices? Yeah, has nothing to do with spacing out figuring out what color the pixels needs to be to reduce lag. It's an artificial delay in sending the data from the server to the client.
-
How to get information from a Tileentity?
world.getBlockTileEntity(x, y, z)
-
[SOLVED] Armor Metadata Rendering!
You will probably have to write your own renderer.
-
Ore Dictionary: get all ores
It gets all OreDict entries. And by that I mean all of them. You could just get them and loop through to find the ones you need. Which is inefficient to be doing 50,000 times a tick. (50,000 is not an unreasonable estimate in my case. If anything it's conservatively low by a few powers of 10. A more accurate estimate would be 224, if I understand the map code correctly.) Edit: Ran a test, my custom map hits ~10,000 blocks per update on flat maps and almost 200,000 per update on a generic vanilla world (average ground height of 63). So less than I suspected, but the suspected value is probably pretty close to the worst-cast scenario.
-
Ore Dictionary: get all ores
That gets all blocks that match a single name. And by single name I mean "oreCopper" (you have three installed: 1551, 21345, and 27000) not "ore" (you have iron, coal, copper, diamond...)
- Tile entity coords?
-
How To Patch A Mod To Work With A Dif Mod?!?! [HELP]
The other two mods would need to have APIs and expose their game objects to you. If not, then you'll have to use your mod's config file to read in the values that the user says are the item values, and hope that they are truthful.
-
Gravity not working for setBlock()
world.setBlock(x, y, z, block, meta, 3); If that's not sufficient though, you can always schedule a block update manually. world.scheduleBlockUpdate(x, y, z, triggeringBlockID, numTicks);
-
CONVERTING MY MOD TO SMP?
I just realized that it would be awesome if there was a way to "like" someones post because you thought it was funny or something. Because that made me laugh. Que?
-
CONVERTING MY MOD TO SMP?
I just realized that it would be awesome if there was a way to "like" someones post because you thought it was funny or something. Because that made me laugh. Que?
-
Ore Dictionary: get all ores
I ended up getting help from someone who'd done it before, but I didn't know where I'd get my answer first. But yes. That did it.
-
Ore Dictionary: get all ores
I ended up getting help from someone who'd done it before, but I didn't know where I'd get my answer first. But yes. That did it.
-
Entity's keep falling trough blocks
Entities, plural. The apostrophe does not mean what you think it means. Please do not abuse the English language.
-
Entity's keep falling trough blocks
Entities, plural. The apostrophe does not mean what you think it means. Please do not abuse the English language.
-
Ore Dictionary: get all ores
How would I go about retrieving all ores from the ore dictionary, given some partial string (e.g. "ore", "wood", "gem"). I don't want to use the resulting collection as a recipe, so don't point me at how to use the dictionary for recipes. I specifically need to know the block ID numbers of the various ores to compare them with the return from world.getBlockId(x, y, z) for determining if something special needs to occur. It's easy enough to do a by-hand tabulation of the vanilla ores, but I want my mod to also work with any other ore any other mod might add, without knowing the exact name of the ore.
-
Ore Dictionary: get all ores
How would I go about retrieving all ores from the ore dictionary, given some partial string (e.g. "ore", "wood", "gem"). I don't want to use the resulting collection as a recipe, so don't point me at how to use the dictionary for recipes. I specifically need to know the block ID numbers of the various ores to compare them with the return from world.getBlockId(x, y, z) for determining if something special needs to occur. It's easy enough to do a by-hand tabulation of the vanilla ores, but I want my mod to also work with any other ore any other mod might add, without knowing the exact name of the ore.
-
CONVERTING MY MOD TO SMP?
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here What Darknesschaos said, plus: ModLoader.addName(Knife,"Knife"); Knife.iconIndex = ModLoader.addOverride(...); ModLoader.addRecipe(...) Doing that with Forge looks like this: LanguageRegistry.addName(Knife,"Knife"); GameRegistry.registerItem(Knife,"Knife"); Knife.iconIndex = //stuff I've forgotten since I moved away from 1.4.x GameRegistry.addShapedRecipe(...)
-
CONVERTING MY MOD TO SMP?
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here What Darknesschaos said, plus: ModLoader.addName(Knife,"Knife"); Knife.iconIndex = ModLoader.addOverride(...); ModLoader.addRecipe(...) Doing that with Forge looks like this: LanguageRegistry.addName(Knife,"Knife"); GameRegistry.registerItem(Knife,"Knife"); Knife.iconIndex = //stuff I've forgotten since I moved away from 1.4.x GameRegistry.addShapedRecipe(...)
-
[SOLVED]Can Mod Be Used On Servers Without Decompiling Minecraft Server JAR?
Yes. I don't know why people haven't figured this out yet, but SSP IS SMP. Ever since we got "open to LAN" SSP and SMP have been the same thing.
-
[SOLVED]Can Mod Be Used On Servers Without Decompiling Minecraft Server JAR?
Yes. I don't know why people haven't figured this out yet, but SSP IS SMP. Ever since we got "open to LAN" SSP and SMP have been the same thing.
-
CONVERTING MY MOD TO SMP?
First off, your code is not Forge, it's ModLoader. Second, it doesn't like your recipe, I have no idea why, because I don't recognize that usage.
-
CONVERTING MY MOD TO SMP?
First off, your code is not Forge, it's ModLoader. Second, it doesn't like your recipe, I have no idea why, because I don't recognize that usage.
-
TileEntitySpecialRenderer not reacting to Lighting
int l = this.renderManager.worldObj.getLightBrightnessForSkyBlocks(i, j, k, 0); int i1 = l % 65536; int j1 = l / 65536; OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)i1, (float)j1); That's pulled from the painting renderer, but I'm pretty sure TEs need it too.
-
TileEntitySpecialRenderer not reacting to Lighting
int l = this.renderManager.worldObj.getLightBrightnessForSkyBlocks(i, j, k, 0); int i1 = l % 65536; int j1 = l / 65536; OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)i1, (float)j1); That's pulled from the painting renderer, but I'm pretty sure TEs need it too.
-
Custom trees in custom dimension which is generated like the nether, don't spawn
soil.canSustainPlant(par1World, par3, par4 - 1, par5, ForgeDirection.UP, (BlockSapling)Block.sapling) Does your custom grass return true for this function?
IPS spam blocked by CleanTalk.