Jump to content

[1.7.10] Arrow Like Particle with keyBind and NBT??


drok0920

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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