
JoachimTa
Members-
Posts
23 -
Joined
-
Last visited
Everything posted by JoachimTa
-
Okay thank you, now I understand. Well I think I know the problem and I no longer need help thank you!
-
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
-
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.
-
-
That is my compound tag method
-
Update: is this what you wanted?
-
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?
-
I dont really understand, what do I add. Can you be a little bit more descriptive?
-
Yes I did that, Thank you! Whats the next step? Do I make a new compound tag, btw the soulpower is a float value.
-
Yes, but I dont know how this ItemStack thing works, so i dont know what to put in the parantheses
-
This is what I have done, I don't know if this was what you meant
-
Also should I make another class for this? Right now I have put it in soulStealEvent.java
-
Did you mean something like this?
-
Sorry I dont understand, What does # mean, and how do I call ItemStack with getOrCreateTagElement.
-
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
-
I want it displayed as a tooltip.. I dont need tags then right?
-
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?
-
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?
-
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.
-
I keep getting Exit code 0 and I've tried everything
JoachimTa replied to JoachimTa's topic in Support & Bug Reports
Problem solved! just needed to delete config -
Thanks, it fixed it!
-
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