Everything posted by CJLetsGame
-
Block with metadata?
To load textures: @SideOnly(Side.CLIENT) @Override public void registerIcons(IconRegister iconRegister) { iconBuffer = new Icon[MetaCount]; iconBuffer[0] = iconRegister.registerIcon("MODID:" + TextureName1); iconBuffer[1] = iconRegister.registerIcon("MODID:" + TextureName2); blockIcon = iconBuffer[0]; } To get textures based on meta: @SideOnly(Side.CLIENT) public Icon getBlockTexture(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) { return iconBuffer[par1IBlockAccess.getBlockMetadata(par2, par3, par4)]; }
-
LoaderException NoSuchMethodError
I've just recently gotten back into modding, and tried making a mod to give me more of a challenge in my FTB Monster world. The mod runs fine in my eclipse environment but when I add it to the pack, I get: http://pastebin.com/ANS8y8Es The class ItemIngot is just an extension of Item. Oh, and I'm still developing on 1.6.4 if you couldn't tell when i mentioned FTB Monster.
-
[1.6.4] How to override a super class method when you are calling said method
By having a class that extends EntityZombie and calling that method, you eliminate the call to the super as well. Just call the EntityMob methods then within your method. Thats the best I can think of with what I got from your post.
-
Good java tutorials
From experience. I just jumped into modding, learning java as I went. To be fair I had a lot of background with other languages.
-
Good java tutorials
This isnt the place for non-forge related questions. This is for people who know java but need help with modding. If you want java tutorials, do some research with google.
-
1.6.4 nether ore gen
Try FBalazs answer, and tell us if the coords print out still.
-
getBlockTextureFromSide and metadata question
Meta is passed in with the par2 argument. As for the second part of your post, I dont understand what you are saying.
-
Render 3D Armor (ModelArmor) from techne
Dont bump old threads
-
Block with specific items for placing them show up twice in NEI
Blocks are the in-world representation. ItemBlocks are the thing in your inventory. They are the item form of the blocks. Blocks cannot be placed in an inventory, only their item form. NEI also only shows a block's item form.
-
[Solved] No Bock Texture
Actually, your solution is better if since only certain metas of my block have a model... This way I can check the meta and only render the ones that dont have a model.
-
Block with specific items for placing them show up twice in NEI
Blocks are only shown as items in NEI. Technically they are ItemBlocks. There is no way it shows duplicates unless you have it programmed somewhere.
-
[Solved] No Bock Texture
I was aware of that option. I was just hoping I didnt have to do that. Id rather not have to include a blank texture in my assets. It would be nice if there was a way to disable rendering of the block... Ill see what happens when I mess with the render type. EDIT: Solved, changing the render type to -1 disables rendering.
-
[1.6.4] Detect if a player is using an item always
Did you register it? MinecraftForge.EVENT_BUS.register(new YourEventHandler());
-
[1.6.4] Detect if a player is using an item always
TickHandler maybe?
-
[Solved] No Bock Texture
Is there any way beside a custom block renderer or a blank transparent texture to prevent the block from being rendered? As it is now, I am rendering a model for my tile entity, but the block also renders.
-
Help with tile entities and onBlockActivated();
You dont want SideOnly, but you want to run the code client side only since you want to print the chat message. if (world.isRemote()) //This is the client { //Code Here }
-
Help with tile entities and onBlockActivated();
That's because it is called once on the client side and again on the server side.
-
Proxy Class not Found
That is a good question... I think the tutorial I followed had the reference there for whatever reason. Things worked fine last time so Im not complaining much. Changing this reference fixed it. Ill come back and remove the extra SidedProxy annotation eventually. Thanks for the help.
-
Proxy Class not Found
That wouldnt work if its looking in a different package than I specified. I tried it anyways though, no luck. EDIT: Quick video just in case http://youtu.be/lXBnV7Dzq4c To make it more confusing, I commented out SidedProxy and it was still looking for the proxies in the wrong spot.
-
Proxy Class not Found
I know, thats why Im confused. I can make a quick video of my workspace and stuff if needed.
-
Proxy Class not Found
I decided to reorganize my workspace and now my mod cant find my proxies. I made to to update their locations in the SidedProxy annotation but it still cant find them. @SidedProxy( clientSide = "CJTech.core.network.ClientProxy", serverSide = "CJTech.core.network.CommonProxy" ) Proxies are at CJTech>core>network. Error:
-
[1.6.4] How to change a name of a item in code when right clicked.
Just re-register the item in the language registry. I think it should overwrite the old name.
-
[1.6.4] How to change a name of a item in code when right clicked.
Make a string list with all the possible names and use an index number which increases each time you right click the block.
-
[1.5.2] TileEntity Block missing texture
"Code is really messed up" tells us nothing specific. There are tutorials for 1.5.2 but most of the good ones have been updated to 1.6.4. http://www.minecraftforge.net/wiki/Basic_Tile_Entity Should work with minor changes to back-date to 1.5.2
-
[1.5.2] TileEntity Block missing texture
Vanilla is UNMODDED. Open Block.java from Minecraft and look at how all the blocks are declared.
IPS spam blocked by CleanTalk.