mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-29 08:42:17 +00:00
Implement tag functionality
This commit is contained in:
@@ -16,6 +16,7 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.ListTag;
|
||||
import net.minecraft.tag.ServerTagManagerHolder;
|
||||
import net.minecraft.tag.Tag;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Identifier;
|
||||
@@ -86,7 +87,7 @@ public class ItemData
|
||||
data.put( "unbreakable", true );
|
||||
}
|
||||
|
||||
// data.put("tags", DataHelpers.getTags( ??? ));
|
||||
data.put("tags", DataHelpers.getTags( ServerTagManagerHolder.getTagManager().getItems().getTagsFor(stack.getItem()) )); // chaos
|
||||
|
||||
return data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user