Everything posted by CJLetsGame
-
1.6.4 nether ore gen
Are you absolutely sure it isnt generating? Right now, it is making a maximum of 4 veins of 2 ore per chunk. Thats assuming it tries to generate in netherrak and not air, which is what usually makes up most of a chunk. That means its extremely rare.
-
[SOLVED] [1.5.2.] Custom Mobs /w Custom Sounds.
Im guessing like every other asset for mods, it goes in your mod's asset folder. Probably in a sub-folder called sounds.
-
[SOLVED] [1.5.2.] Custom Mobs /w Custom Sounds.
EventHandler wasnt implemented yet in 1.5.2 forge. DoorCloser, is there any reason you dont start modding with 1.6.4? You might get better answers if you update.
-
Block ID below 256
use getTerrainBlock instead of getBlock
-
1.6.4 nether ore gen
Use breakpoints or write text to the console to make sure the code is running.
-
[1.6.4] How to change an item texture according to the player's armor?
Actually y is the height, not z. Plus you could do this, and no it wont be slow. int Range = 20; for (int x = -Range; x < Range; x++) { for (int y = -Range; y < Range; y++) { for (int z = -Range; z < Range; z++) { //Code Here } } }
-
1.6.4 nether ore gen
Did you register the World generator?
-
How do I make a mob check the distance between it and the player? (Forge 1.6.4)
There is probably a method for it, but if you have to, way not just use simple geometry? Distance between 3D points Sqrt(Dx*Dx+Dy*Dy+Dz*Dz)
-
1.6.4 nether ore gen
You should realize the nether is a giant open cave. So ore that spawns should have a significantly higher spawnrate than overworld ores since most of the blocks per chunk are usually air. EDIT: You might also want to increase your Y value.
-
[1.6.4] How to change an item texture according to the player's armor?
worldObj.markBlockForRenderUpdate(x,y,z);
-
Flickering Texture bug
Umm why do you have 2 methods making tile entities? @Override public TileEntity createTileEntity(World world, int meta) { return new TileEntityBattery(); } @Override public TileEntity createTileEntity(World world, int meta) { return null; }
-
[Solved] Icon not showing in Gui
Nevermind. Solved. Forgot to bind the TextureMap this.mc.getTextureManager().bindTexture(TextureMap.locationItemsTexture);
-
[Solved] Icon not showing in Gui
This is in the drawScreen. The code runs, and the Icon isnt null, but the icon isnt displayed on the gui. All the buttons work fine. This is the only part that doesnt work. Icon itemIcon = craftMatrix[c].getIconIndex(); if (c == 0) { this.drawTexturedModelRectFromIcon(posX + 130, posY + 20, itemIcon, 16, 16); } if (c == 1) { this.drawTexturedModelRectFromIcon(posX + 150, posY + 20, itemIcon, 16, 16); }
-
[1.6.4 | IC2] TileEntity not removing
Your welcome
-
[1.6.4 | IC2] TileEntity not removing
EnergyTileUnloadEvent is what I meant. I used it before in block break and it worked fine.
-
[1.6.4 | IC2] TileEntity not removing
EnergyNet has a remove tile entity method that you need to use when the block is broken.
-
[solved posted answer in thread]Texture overlay?
I believe leather armor isnt a texture overlay, its rendered with a color multiplier.
-
[1.6.4] cant open custom gui
serverSideRequired=true
-
Help with IC2 addon
Like I said, use the Ore Dictionary along with the api for the actual code. The mod is there for testing purposes. Otherwise there would be no dictionary registrations.
-
Help with IC2 addon
You dont have to decompile it... Just get the IC2 mod zip and place it in mods like you would in a normal minecraft installation.
-
Help with IC2 addon
If you have ic2 in your mods folder you can use the following in postInit to print all ore registrations. for (String ore : OreDictionary.getOreNames()) { System.out.println(ore); } If not, it is pretty easy to figure out. All dusts are registered as "dust" and then the dust type. Copper Dust: dustCopper Refer to the following for more information on the dictionary. http://www.minecraftforge.net/wiki/How_to_use_the_ore_dictionary http://www.minecraftforge.net/wiki/Common_Oredict_names
-
Help with IC2 addon
A lot of IC2 items and blocks are registered in the Ore Dictionary.
-
setInventorySlotContents()
If it is indeed a sync issue, you need to use packets. http://www.minecraftforge.net/wiki/Packet_Handling
-
[1.5.2] How to make Mobs turning their heads [ SOLVED ]
targetentity needs to be replaced to whatever you want it to look at. Like I said, this needs to be used with AI. If you have no idea what Im talking about, there are tutorials for entity AIs. Or, just copy-paste an existing mob and alter it as needed.
-
[1.5.2] How to make Mobs turning their heads [ SOLVED ]
You need to add AI to your mob otherwise the below code is useless. this.getLookHelper().setLookPositionWithEntity(targetentity, 30.0F, 30.0F);
IPS spam blocked by CleanTalk.