Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/25/23 in all areas

  1. If you've created your own tag Then you can use the is() function on the ItemStack. public static final TagKey<Item> myItemTag = ItemTags.create(new ResourceLocation("mymod", "my_tag_name")); //later... stack.is(myItemTag); If you want to use a vanilla tag, they are all defined for you... stack.is(ItemTags.LOGS) I'm not sure this results in O(1) complexity, as it may use something like contains() under the hood, but at least your code is simple and if an optimization is made, you will take advantage of it.
    1 point
  2. 1 point
  3. I can point you to the Minecraft wiki as, like I said, a user playing your mod can simply disable the recipes and ore generation themselves through a datapack. If someone really wants to disable your stuff, there is already a way to do so without your intervention.
    1 point
×
×
  • Create New...

Important Information

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