Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (โ‹ฎ) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

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

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

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions โ†’ Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.