Everything posted by GotoLink
-
Custom Gui texture not working outside eclipse.
public static final String GUI_LOCATION = "textures/gui/";
-
Liquid crashes
theoreticStill = new LiquidTheoreticFlowing(... Derp
-
Looking for GUI tutorials - not ItemContainer
Proxies are helper classes, they were never compulsory. Thus can't be deprecated unless Mojang provides a better system. If you know how to check for client side on your own, you don't need them anyway. And you never needed CommonProxy for Gui handling. IGuiHandler is an interface.
-
Delete item from solt?
Call onInventoryChanged() ?
-
[Unsolved] 3D Item Renderer Weirdness
EntityRegistry.registerGlobalEntityID(EntityIceBolt.class, "IceBolt", EntityRegistry.findGlobalUniqueEntityId()); Why are those registered on client side in registerRendering() ?
-
Custom Bow Renderer Problem
Remove Cproxy field. It is null and useless.
-
How To Add Kill Counter To A Custom Tool
Learn basic Java. Please.
-
Item not creating NBT Tags
Might be an error in the tags. Store the String tags as static final fields and use them instead.
-
Center GUI button
Set its coordinate on the middle.
-
Ghost Items
I don't believe in ghosts so I don't understand what you mean. Item tooltips can be added with the addInformation(ItemStack...) method in Item class.
-
Some questions about GUI buttons...
1/ NBT would only be needed if you save it to the server. Completely useless for simple data handling or packet sending. An array or list of the code parts would be fine. 2/ Sending packets for the server to change things. 3/ Use guiLeft and guiTop field, they are relative to the window size.
-
Item not creating NBT Tags
All your switches are missing break statement.
-
Creating GUI won't work
You seriously need to do something here public void onGuiClosed() { //TODO: Need to be edited! /* Keyboard.enableRepeatEvents(false); NetClientHandler netclienthandler = this.mc.getNetHandler(); if (netclienthandler != null) { netclienthandler.addToSendQueue(new Packet130UpdateSign(this.entitySign.xCoord, this.entitySign.yCoord, this.entitySign.zCoord, this.entitySign.signText)); } this.entitySign.setEditable(true); */ }
-
Can't damage (reduce an item) an ItemStack
Server side only.
-
Delete item from solt?
Server side only.
-
162 textures not loading in released .zip -- works fine in eclipse
Show some code. There are multiple causes for this: Package not lowercase. Wrong zip structure. Wrong ResourceLocation use (since it is custom model rendering).
-
Item Pedestal.
Look for the vanilla frames as an example. They are handled by ItemHangingEntity and EntityHanging (EntityItemFrame).
-
Item Pedestal.
EntityItem is an entity, so you spawn it into the world (server side).
-
[1.6.2]Bonemeal Source
BlockFlower ?
-
Detecting an item and performing actions on it in a player's inventory
Depends on when you want the actions to be done. But yes, straight forward approach is to run a for loop on the player inventory slots.
-
Item Pedestal.
I would just use an EntityItem. That will call all needed rendering. The pedestal would simply need to reset the timer so that it doesn't despawn.
-
Can I use Entity.isCollidedHorizontally server side?
Maybe your code is too simple. I am not sure that isCollidedHorizontally would be true if the entity is only going up or down. Which would mean that fallDistance is not set to 0.
-
Custom tree generation problems
try with if (i1 > 0 && i1 < 256) { k1 = par1World.getBlockId(l1, i1, j1);
-
Setting allowEdit to false?
The setHardness method wouldn't work on multiplayer since many people can hit many blocks at the same time. Consider using ItemInWorldManager fields and reset the breaking flags for the player.
-
Need help with mod version
To use VersionCheckHandler annotation, you must have a @NetworkMod and put it in the same class, with a public method accepting a String as only argument. See NetworkModHandler class for details on how it work.
IPS spam blocked by CleanTalk.