
CJLetsGame
Forge Modder-
Posts
148 -
Joined
-
Last visited
Everything posted by CJLetsGame
-
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)]; }
-
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.
-
From experience. I just jumped into modding, learning java as I went. To be fair I had a lot of background with other languages.
-
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.
-
Try FBalazs answer, and tell us if the coords print out still.
-
getBlockTextureFromSide and metadata question
CJLetsGame replied to skullywag's topic in Modder Support
Meta is passed in with the par2 argument. As for the second part of your post, I dont understand what you are saying. -
Dont bump old threads
-
Block with specific items for placing them show up twice in NEI
CJLetsGame replied to KGS's topic in Modder Support
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. -
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
CJLetsGame replied to KGS's topic in Modder Support
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. -
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
CJLetsGame replied to XVicarious's topic in Modder Support
Did you register it? MinecraftForge.EVENT_BUS.register(new YourEventHandler()); -
[1.6.4] Detect if a player is using an item always
CJLetsGame replied to XVicarious's topic in Modder Support
TickHandler maybe? -
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();
CJLetsGame replied to AskHow1248's topic in Modder Support
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();
CJLetsGame replied to AskHow1248's topic in Modder Support
That's because it is called once on the client side and again on the server side. -
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.
-
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.
-
I know, thats why Im confused. I can make a quick video of my workspace and stuff if needed.
-
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.
CJLetsGame replied to gmod622's topic in Modder Support
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.
CJLetsGame replied to gmod622's topic in Modder Support
Make a string list with all the possible names and use an index number which increases each time you right click the block. -
"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
-
Vanilla is UNMODDED. Open Block.java from Minecraft and look at how all the blocks are declared.