Posted July 10, 201411 yr Hello MCF forum, I would like to know how i would make it so when a players nbt tag equals a certain int and the player presses "F" it fires fire particle like a flame thrower. I have no clue how i would go about doing this as i have used the key binding tut on the wiki but it just crashes on start up and i dont know how to send packets to allow this if nessesary.
July 11, 201411 yr Hi I would suggest you take one small step at a time, eg 1) get the key binding tutorial to work so that it performs eg System.out.println("F"); every time you push the F key. Once that works 2) add the check of the player information Once that works 3) Add the EntityFX particle spawning (see RenderGlobal.spawnParticle). You don't need packets, particle effects are client-side only. -TGG
July 11, 201411 yr To fix the KeyBind tutorial you need to put in your load or init method in the main class this line: KeyBindingClass.init() It worked for me, I hope it'll work for you. "I an atom in the universe, a universe of atoms"-- Richard P. Feynman
July 11, 201411 yr Author Ah thank you that's why it wont work i will try that soon to see if it fixed it.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.