Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


Forge Modder
  • Posts

  • Joined

  • Last visited

Everything posted by DemRat

  1. Hello there Forge forums. I'm currently trying to add a "item" (Don't ask, it's complicated) which increases jump height and reduces fall damage so that you dont take damage when landing at the same height. The code for the change itself is in place and works, but I ran into this problem: If I have the additional jumped blocks as variable, I do know how to reduce fall damage, but do not know how to increase the velocity appropriately. If I have the percentual increase in velocity as variable, I do not know how to reduce fall damage, but do know how to increase the velocity appropriately. Can anyone help me with that?
  2. It works now, thanks! There was one problem with the texture being cropped, but with a little google-fu I was able to find a solution for that: GL11.glScaled(scale, scale/2, scale);
  3. I tried to avoid that because I don't udnerstand what exactly is happening and therefore can only modify it with trial and error. I'm now using the version of that code used in the inventory until something other comes up, but the arms move and the Item the Player is holding is drawn too. Any Idea how I can prevent that?
  4. First, thank you for that, you at least gave me a starting point to begin with. But I'm still struggling with this. This Code: Results in:
  5. Hello Forums, As you already know if you read the title, I'm trying to draw the Player in a Front view onto a GUI. I don't want/need it to be 3D and therefore dont really want to use the code from the Player Inventory. Can anyone explain to me or post a link to a tutorial how i could do that? Thanks in advance.
  6. I tried to implement it, but somehow it doesn't recognize my AddedCyberneticMessage class as proper argument for registerMessage Any Idea why? public void preInit(FMLPreInitializationEvent e) { proxy.preInit(e); network = NetworkRegistry.INSTANCE.newSimpleChannel("MyChannel"); network.registerMessage(AddedCyberneticsMessageHandler.class, AddedCyberneticsMessage.class, 0, Side.CLIENT); } public class AddedCyberneticsMessageHandler implements IMessageHandler { @Override public IMessage onMessage(IMessage message, MessageContext ctx) { // TODO Auto-generated method stub return null; } public static class AddedCyberneticsMessage implements IMessage{ String addedCybernetic; public AddedCyberneticsMessage(){ } public AddedCyberneticsMessage(String cybernetic){ } @Override public void fromBytes(ByteBuf buf) { // TODO Auto-generated method stub } @Override public void toBytes(ByteBuf buf) { // TODO Auto-generated method stub } } }
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.