Jump to content

JoachimTa

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by JoachimTa

  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
  15. I want it displayed as a tooltip.. I dont need tags then right?
  16. Yeah, but I am trying to make so that it saves the entitys hp on the sword, so you can see it, should I not use nbt tags for it or?
  17. How do I do this?, I am very new to modding in minecraft, and aren't I usign compoundTag or do I need to do it in another class?
  18. I am making a mod where when you kill a mob you get its hp into soulpower, and I am trying to get it to be stored in a nbt tag on the enchanted weapon, everything works except the nbt Tag. I have tried with setTags but that gets rid of the enchantment.
  19. Problem solved! just needed to delete config
  20. I have looked at many forums looking for a solution and nothing worked, I tried reading the logs and still haven't found nothing. My modpack has 226 mods, and it has worked fine just until now, I haven't changed anything, it just appeared out of nowhere! logs: https://pastebin.com/WnBg0NjK
  21. Thanks, it fixed it!
  22. So I tried launching my mod with 214 mods and it launches just fine but as soon as it's done loading it crashes, I've tried reading the logs but couldn't find it. latest.log
×
×
  • Create New...

Important Information

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