Jump to content

Jus de Pom

Members
  • Posts

    1
  • Joined

  • Last visited

  • Days Won

    1

Jus de Pom last won the day on May 10 2022

Jus de Pom had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jus de Pom's Achievements

Tree Puncher

Tree Puncher (2/8)

2

Reputation

  1. This is kind of hard to get them because items or blocks don't belong to tags, but tags belong to them : basically, an item (or a block) has a list of tags associated to it. Luckily, there's another way to get the tag rather than looping through every item in the game and check if it has the tag you want : // This is to get the values of a tag that is bound to items : ForgeRegistries.ITEMS.tags().getTag([THE TAG YOU WANT]).stream().toList(); // Returns a List<Item> // ^ // Should be a TagKey<Item> // To get a tag that is bound to blocks : ForgeRegistries.BLOCKS.tags().getTag([THE TAG YOU WANT]).stream().toList(); // Returns a List<Block> // ^ // Should be a TagKey<Block> Hope it helps
×
×
  • Create New...

Important Information

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