Started by
nuhauponosik228
on
Topic category: Help with Minecraft modding (Java Edition)
i want to make a sword that will remember mobs that it killed and will have bonus damage against them but i don't know how to make that, when using string variable it only works for one entity at a time.
List of strings probably. When it kills a mob, add it’s id to the list. If the mob is in that list then do bonus damage
(You’re also gonna want to save and get the list from the item’s nbt data; otherwise the list will be saved globally for all of the swords in the world)
thanks, it started working