Jump to content

Couldn't load tag minecraft:mineable/pickaxe as it is missing following references: testmod:test_block (from main)


Recommended Posts

Posted

Hi!

I never worked with minecraft tags and have no Idea why this isn't working.
Here is the whole file:

{
	"replace": false,
	"values": [
		"testmod:test_block"
	]
}

That's it.

Sorry if my Posts are weird sometimes, I just try to help and learn as much as I can :D

Also: PLEASE use SPOILERS for logs!

Posted
  Reveal hidden contents

As you can see there are more than one of these errors (every time I try to add something to a tag)

Also the mod's id is 

tastydishes

(I just used examplemod because... I use examplemod every time)

Sorry if my Posts are weird sometimes, I just try to help and learn as much as I can :D

Also: PLEASE use SPOILERS for logs!

Posted

I really don't know what is causing the issue.

As you can see here

 p_144538_.build(function, function1).ifLeft((p_144543_) -> {
               LOGGER.error("Couldn't load tag {} as it is missing following references: {}", p_144537_, p_144543_.stream().map(Objects::toString).collect(Collectors.joining(", ")));
            })
~ net.minecraft.tags.TagLoader.class line 158 - 160

it only throws this error if the Entry is "left" (I have no Idea what this means)

So when is the entry left?
in the build function of net.minecraft.tags.Tag$Builder

return list.isEmpty() ? Either.right(new Tag<>(builder.build())) : Either.left(list);
~ net.minecraft.tags.Tag$Builder line 93 (in whole class)

you can see that it only returns an Either.left if the list is empty, but the list will only be empty if each of the entries loop over 

if (!tag$builderentry.entry().build(p_144372_, p_144373_, builder::add)) {
   list.add(tag$builderentry);
}
~ net.minecraft.tags.Tag$Builder line 88 - 90 (whole class)

and every single entry returns true here:

tag$builderentry.entry().build(p_144372_, p_144373_, builder::add)

What does the build function do and when does it return true?

Thanks for any help, I really don't know what to do :(

 

Sorry if anything is wrong here, that is just what I understood from the code

Sorry if my Posts are weird sometimes, I just try to help and learn as much as I can :D

Also: PLEASE use SPOILERS for logs!

Posted

Hi!

I finally got it to work!

For all who have the same problem: I made a new mod with the same modid and copied the src folder into the new. I don't know why or how but it worked :D

  • Like 1

Sorry if my Posts are weird sometimes, I just try to help and learn as much as I can :D

Also: PLEASE use SPOILERS for logs!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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