Everything posted by GotoLink
-
OBJ Model Bind Texture
Make your resource a field, please. And drop the / before "textures/test.png".
-
Unknown Symbols on Recompile
Some syntax error or wrong/missing import in ContainerWikiLinkMenu ? Quite strange, really.
-
How do you remove a vanilla item from its Creative tab?
Item.pumpkinPie.setCreativeTab(null);
-
Entity loses data client side on world loads/unloads
The wiki basically explain everything you need to know. For practical examples, look at any open source mod. There is a high chance they use packets.
-
Give Item to player
You set yourself on client side. Why ? You are not happy with the player the method gives you ?
-
Boat Mod Problem
As for finding EntityTracker, i just followed registerModEntity method till reaching the point where those variables are used. The change is good, but don't initialize items with final static. It is recommended to only initialize items and blocks after receiving the FMLPreInitializationEvent. This way you are sure Minecraft is ready to handle things
-
Boat Mod Problem
Extend EntityBoat. Change only what you need changed. Take a look at the EntityTracker to understand what the parameters in the registerModEntity method do.
-
Entity loses data client side on world loads/unloads
Use EntityJoinWorldEvent and send a packet to client side.
-
meta sensitive input furnace
Follow FurnaceRecipes lists example. Make your own metadata sensitive version and use it for your tile.
-
Custom furnace(s) bug
Why registering the class twice ? You should give your Tiles a default constructor.
-
How to override classes
Wasn't Modjam finished, like, weeks ago ? Anyway, to change classes without using them directly, use a class reader and bytecode manipulation. If you can do it on Mojang classes, you can do it on other mods classes too.
-
Function called for Items in Chests?
I think the problem is how you are doing your effect on the item. It is bringing a lot of stupid issues because of this. Edit: You could use the EntityInteractEvent and check for EntityItemFrame.
-
[solved][1.6.4] Coremod and normal mod in one jar no longer supported?
The jar's MANIFEST must have FMLCorePluginContainsFMLMod: true
-
How to override classes
Using a ITickHandler with TickType.World you can read a few blocks at random in the world. Then search for whatever type it is, the data it contains...
-
Iron Golem Spawning
Use EntityLiving#setAttackTarget(EntityLivingBase)
-
Function called for Items in Chests?
You can also use the ItemTossEvent.
-
Sound stops working on any forge version above 1.6.2-9.10.0.789
I'd say the error is on your system. Either your sound or your internet connection or one of the mods.
-
On player disconnect?
IPlayerTracker has onPlayerLogout(EntityPlayer).
-
[1.6.2]Unmount issues.
The mounting affects the rider yaw and pitch, thus the rendering. Your crash report suggest sorting failure in RenderGlobal... the renderer sorting is done by entity distance, so i guess two entities are at the exact same point ? AFAIK, the only thing that happens when a dismount is Entity#mountEntity(Entity), with a null argument. This is where setLocation(args) occurs, but you can change that by doing what you want after...unless you use "sneak" unmount. In case of the player, it is overriden with EntityLiving#dismountEntity(Entity) also called server side.
-
Null Pointer with EntityItem
The issue has been fixed. The author had a conflict with server side by using client side only code where he shouldn't have.
-
DungeonHooks.addDungeonLoot ?
There clearly is a dungeon chest category in ChestGenHooks. Then you can use whatever addItem method you want in that class.
-
Multiple furnace TileEntities that shouldn't be there
Well, you have discovered client and server side. Furnaces typically use their container methods to send update information about their burn time so the gui can print it
-
How to display coordinates to the user
You can use RenderGameOverlayEvent.Text to add to left or right list of texts on screen.
-
Function to spawn random fireworks, or creepers, or both :)
In onBlockPlacedBy(World,int,int,int,EntityLivingBase), spawn an EntityFireworkRocket. Find in Entity the methods to set position and such.
-
[1.6.2] Problem with capabilities.setPlayerWalkSpeed
Your modifier id needs to be constant.
IPS spam blocked by CleanTalk.