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

All tutorials I have found don’t work. What should the class include and what code is needed to make the firesword. Also, what do I need to do in my registry handler class to register it as a sword. (Fire sword meaning fire aspect)

42 minutes ago, atmosaveer said:

All tutorials I have found don’t work. What should the class include and what code is needed to make the firesword. Also, what do I need to do in my registry handler class to register it as a sword. (Fire sword meaning fire aspect)

Make a sword, register using the methods in the docs, and have it enchant on recipe creation. Boom, fire sword.

 

Also, if you're trying to directly copy and paste from someone elses work (who probably just stole from someone else), learn java before you start modding. Then, spend time actually understanding what you are writing.

  • Author

I have been doing java for a year. I DO understand what I am writing, I just don’t know the methods and format used in Minecraft Modding. Also, I don’t want to enchant it. It shouldn’t show any enchantment. 

29 minutes ago, atmosaveer said:

I have been doing java for a year. I DO understand what I am writing, I just don’t know the methods and format used in Minecraft Modding. Also, I don’t want to enchant it. It shouldn’t show any enchantment. 

Not a good idea to start a sentence off with all the tutorials don't work then. It implies that you are doing the try and true method of copy-paste.

Also, you shouldn't mention fire aspect then since that's an enchantment.

 

Otherwise, look at Item::hitEntity and Entity::setFire.

15 minutes ago, atmosaveer said:

I have tried to do “set fire.” It works. However, mobs still DROP uncooked meat.

That's either a problem with loot tables (which is doubtful as it works fine) or you aren't setting the information on the server. You can even put a breakpoint at EntityFlagsPredicate::test to see if this is the case.

  • Author

Wait I tested flint and steel on a chicken and it dropped cooked loot. That means there isn’t a problem with the loot tables right? What should I do?

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.