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.

JoachimTa

Members
  • Joined

  • Last visited

  1. Okay thank you, now I understand. Well I think I know the problem and I no longer need help thank you!
  2. That isnt in my code anymore, Luis helped me so. Please read the history of messages before trying to help, That I have gotten ridden of. I know that doesnt do shit. This is an updated version of my code
  3. I havent made a new itemstack, or i am assuming you are pointing out ItemToolTipEvent? Listen I know very little java, I have 1 year experience of javascript (Which is not the same ik), Also this is my first mod so I dont know what the methods do that are with forge. Please have some patience with me.
  4. That is my compound tag method
  5. Update: is this what you wanted?
  6. this is what I understood, the Item gets checked for my enchantment before arriving so it only needs to be checked for the tag here. I dont understand the component.literal part?
  7. I dont really understand, what do I add. Can you be a little bit more descriptive?
  8. Yes I did that, Thank you! Whats the next step? Do I make a new compound tag, btw the soulpower is a float value.
  9. Yes, but I dont know how this ItemStack thing works, so i dont know what to put in the parantheses
  10. This is what I have done, I don't know if this was what you meant
  11. Also should I make another class for this? Right now I have put it in soulStealEvent.java
  12. Did you mean something like this?
  13. Sorry I dont understand, What does # mean, and how do I call ItemStack with getOrCreateTagElement.
  14. So when I kill a mob, its hp becomes a value i call soulpower, and that value is gonna be displayed on the weapon I killed it with that has the soul steal enchantment. Its gonna be displayed when I hover over my mouse on the sword in my inventory. All items with the soul steal enchantment is gonna have its own separate value based on how many mobs it has killed

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.