Skip to content

Removing a value from a tag without replacing the entire tag #2329

Answered by warjort
Desynq asked this question in Mod Dev Support
Discussion options

You must be logged in to vote

The vanilla minecraft resource loader is not finegrained enough to do this.

There is kubejs that lets you play around with tags after they are loaded using javascript (not tried this method myself)
https://mods.latvian.dev/books/kubejs/page/tageventjs

Or you can always do something similar to its mixin
https://github.com/KubeJS-Mods/KubeJS/blob/1.18/main/common/src/main/java/dev/latvian/mods/kubejs/mixin/common/TagLoaderMixin.java
the modification of map after the "load" is complete.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Desynq
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants