Jump to content

Differentiation

Members
  • Posts

    606
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Differentiation

  1. It causes some crashes when you right click on the offhand sometimes, at least in 1.10.2...
  2. I'm not enforcing any rules... I'm barely even familiar with less than half of them... but if a person comes to your Forum expecting you to give them all the answers without knowing what the **** Java is................. you know what I mean? Then I try to help out by telling them not to "leave the Forums," but to hold their horses and move back a step to the very first one which is to be familiar with the language.
  3. Actually, I took it from examples on the Modder Support forum... and yes, I do understand it...
  4. In regards to...?
  5. This makes no sense. You need forge to run OptiFine HD...
  6. I never hinted him to copy anything... Yes, I understand why my usage of the event is wrong because I don't use the event at all I don't know, I never subscribed to the event in my coding career anyway
  7. ASSUMING WE'RE ON 1.10.2, OF COURSE...... otherwise, I can't guarantee...
  8. Example: /* Event fired when specified keys are pressed */ @SubscribeEvent //Subscribes an event with a normal priority public void onKeyInput(KeyInputEvent eventIn) //Method { EntityPlayer playerIn = (EntityPlayer) Minecraft.getMinecraft.thePlayer; //Gets the player instance if (playerIn != null && playerIn instanceof EntityPlayer) //If the entity is existent and it's a player......... { if (Minecraft.getMinecraft().gameSettings.keyBindDrop.isKeyDown()) //Then if Drop key is down........ (BEWARE!!! CLIENT SIDE HERE!!! From here on, server-side = ded, only packets will make it live again!) { playerIn.motionY = 1.0D; // Boing :) (client) PacketHandler.INSTANCE.sendToServer(new MessageExample()); // To the server-side we Gooooo!!!!! (server) KeyBinding.unPressAllKeys(); //Unpress currently pressed keys playerIn.addChatMessage(new TextComponentString("Ya might want'a pick that BACKKKK up!!!!")); } } } Pretty self-explanatory
  9. All wrong except the one I did not quote, and for that you can just send packets... 1. You can check for the pressed key via Keyboard or Minecraft. 2. Yes you can...??? 3. No, it is called for any SPECIFIED pressed key. ex. Minecraft.getMinecraft().gameSettings.keyBindJump.isKeyDown() Minecraft.getMinecraft().gameSettings.keyBindForward.isKeyDown() etc.
  10. Oh... But he can still just subscribe to the KeyInputEvent...
  11. I understand... but we're talking BASICS! He doesn't even know what a METHOD is............... "You start modding with making your main class, then proxies, and then the most crucial part... the methods that need to be run within" ~Diesieben July 24th, 2013. Do you see where I'm comin' from??
  12. Well, then you check for the key you want pressed... and then you write your code block... You... interact with... your... inventory... by pressing 'E???' I'M PREEEEETTTTY SURE........... it's built in for Minecraft......................................
  13. You can subscribe to the KeyInputEvent...
  14. Get out of here and learn Java, then come back. Thanks!
  15. Ho-ho-ho-hold on. First ask yourself this: Do you know Java and/or the basics of it, at least? If you do not then learn the language. It is not that difficult.
  16. Hey, is there any way I can force the player to respawn in the LivingDeathEvent? Please leave feedback. Thanks!
  17. HOLD ON! Before you ask, think again: Do you know the basics of the Java language?
  18. Out of the whole problem here, but why register it THREE times? o_O
  19. this is ignored if only client reads the code... You have to send a packet to the server to do this action. It's not THAT difficult. But I guess you found your way out, so you can just move on
  20. If you want to check for when a squid spawns, use your initial code with LivingSpawnEvent.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.