Everything posted by Abastro
-
[1.7.10] Shield ?
WAT just make field like this private IIcon swordIcon, shieldIcon; and Override registerICons(IIConRegister reg) In this method register IICons using swordIcon= rg.registerIICon("(sword location)"); etc. Then in getIICon method, depending on state return either swordIcon or shieldIcon Seriously, do you know basic java?
-
[1.7.10] Shield ?
Just define it on your custom item class.
-
[1.7.10] Item taking damage after being used for crafting
Just override Item#getContainerItem(ItemStack) in your class, and return the damaged itemstack there.
-
[1.7.10] How would you check if player texture/skin exists
What player do you want to get the skin from? An in-game player or someone can be logged out at the time? For the former, you can find instance of the AbstractClientPlayer for the player. For the latter, you should download the skin manually. In this case, see SkinManager code. (especially #func_152790_a)
-
Gui rendering in the wrong spot when window is resized
You should move your gui constructor code into the initGui, since it is called when gui is opened and scaled.
-
[1.7.10] How would you check if player texture/skin exists
You can find the player(AbstractClientPlayer) from the client world, and call AbstractClientPlayer#getLocationSkin() to get the skin of the player. That also covers the exceptional cases.
-
[1.8]Render class question
You can check it with some printlns(like onEntityUpdate), check world.isRemote there. and please post your current code.
-
[1.8]Render class question
1. Check if the entity exists or not. 2. You shouldn't provide RenderManager in the constructor of the render class.
-
[1.7.10) How to Change Entity Model/Texture
You posted only part of the render code, please post the full RenderCustomType code.
-
1.7.10 Set Mod Load Order
It seems that what you want is a wrong way. You should not give a block certain id! Why do you want that?
-
[1.7.10) How to Change Entity Model/Texture
You can change it on doRender, Vanilla bat also do this.
-
[1.7.10][Solved] Replace item with another
http://lmgtfy.com/?q=java+tutorial+for+beginners Find the videos there.
-
1.7.10 Set Mod Load Order
In @Mod, in the field 'dependencies', add "after:(The mod id)" to load after the mod.
-
[1.8] Chat window is hidden while class enabled? [SOLVED]
Try using RenderGameOverlayEvent.Post instead.
-
[1.8]Render class question
Check if RenderArtifact#doRender called.
-
[1.7.10) How to Change Entity Model/Texture
Make your own (another) renderer which uses multiple models, and substitute alternative model into the RenderLivingEntity#mainModel, It is protected field.
-
[1.7.10] custom arrow not rendering
Does the RendreBlast#renderBlast(...) method get called? Check it.
-
[1.7.10][Solved] Replace item with another
You should learn basic java to do that exactly...
-
Making a mob tameable
So do you have several issues? Then please rephrase those.
-
[1.8] Dimensions, Generating A Structure Once (SOLVED)
1. First remove this line: private static final String __OBFID = "CL_00000397"; It is minecraft deobfuscation id, which is totally useless and unrelated with modding. (+ Do not copy-paste code if you cant fully understand the code..) 2. Please rephrase your issue, I cant understand what is your problem.
-
[1.8]Entity disappears after relogging
Then just using RenderEnderCrystal should work.
-
Get TileEntity values inside a getHarvestTool override function
- [1.8] [UNSOLVED] Dropping an item from a block
Of course. (Or it would not, in case other mods override the drops, but anyway.)- [1.8]Entity disappears after relogging
Then the code of the entity(Artifact) is needed.- [1.8] Dimensions, Generating A Structure Once (SOLVED)
1. You should post the full code, not just a method. 2. Post the crash report together. - [1.8] [UNSOLVED] Dropping an item from a block
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.