HammerLib

HammerLib

37M Downloads

[1.20.1] Impossible to remove tags from gears via kubejs.

tomprince opened this issue ยท 2 comments

commented

This makes it impossible to use tags like "#forge:gears/iron" in recpies without there being an uncraftable variant (if the hammerlib gear recipes are disabled).

Steps to reproduce:

  1. Install mods:
  1. Create 'kubejs/server_scripts/test.js` with
ServerEvents.tags('item', event => {
    event.removeAllTagsFrom( /hammerlib:gears.*/ );
})
  1. Create a world a give self a gear /give @s hammerlib:gears/iron
  2. With gear selected run /kubejs hand and observe that the item still has the tag #forge:gears/iron.
  3. Dump kubejs with /kubejs export and observe that local/kubejs/export/tags/minecraft/item/forge/gears/iron.json does not exist despite an item with that tag existing.
commented

Compatibility with KJS tags is not planned right now.

commented

My main concern is somehow being able to remove the tags for the hammerlib gears that the modpack I'm working isn't even using, so that I can use those tags for my one purpose, without things like recipe viewers showing the uncraftable item.