AutoTag

AutoTag

10M Downloads

[SUGGESTION] Register tags as early as possible

Sunconure11 opened this issue ยท 5 comments

commented

Or at least, before mods like KubeJS and CraftTweaker. I am trying to take advantage of this mod to make certain scripts easier to pull off without having to slog through many items of a similar nature, but it would seem that CraftTweaker might not be capable of fully picking up on your tagging system.

commented

I've been told that mod loading order is completely unrelated to this

I can corroborate this by using #modloaded autotag in crafttweaker
Where this only lets the script run once the mod autotag has loaded

commented

@AzoSBear As I understand it, #modloaded autotag checks if autotag is present, not whether it's initialized. As far as I know, there is no standardized way to check whether a given mod has initialized - at least not with Fabric.

commented

Of note is that I filed this due to the fact that some tags from your mod should normally be working with CraftTweaker, but simply aren't being picked up, and are erroring on CT's end.

https://pastebin.com/WKTYbxqF

commented

Does this mod load after KubeJS or before?

commented

As I understand it, Fabric does not have a concept of "mod loading order", and thus it's impossible for this mod to reliably ensure that it loads before KubeJS / CraftTweaker (although the inverse is possible by mixing into the relevant mod's initializer(s), eek).

Instead, I guess the easiest solution would be to just call CraftTweaker's / KubeJS's "reload" functions after AutoTag is finished populating tags, via whatever API they (likely) expose.