Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] custom ore dictionary entry #35

Open
rlnt opened this issue Aug 20, 2020 · 1 comment
Open

[Bug] custom ore dictionary entry #35

rlnt opened this issue Aug 20, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rlnt
Copy link

rlnt commented Aug 20, 2020

When you try to create a new custom ore dictionary entry, you get an error.

My code:

<ore:flowerMystical>.add(<botania:flower:*>);

This is a not yet registered ore dictionary entry. Therefor you get the error:

BracketHandler <ore:flowerMystical> does not exist.

That's normal because it's not yet dumped into the zsrc cache.
The crafttweaker log says:

[INITIALIZATION][CLIENT][INFO] Adding tile.botania:flower32767.name to ore dictionary entry flowerMystical

So it's definitely working which also is visible when I dump the whole oredict registry:

Ore entries for <ore:flowerMystical> :
-<botania:flower:*>

But even after deleting the .zsrc and restarting the game, it still says that the bracket handler does not exist.
It seems like Probe does not dump self-created oredict entries properly.

Minecraft: 1.12.2
Zenscript extension: 0.27
Probe: 0.1.24
VSCode: 1.48.0

@Yesterday17 Yesterday17 added the bug Something isn't working label Aug 21, 2020
@Yesterday17 Yesterday17 self-assigned this Aug 21, 2020
@rlnt
Copy link
Author

rlnt commented Aug 21, 2020

Just a little more information after some testing. Custom ore dictionary entries work if you defined them once with the var keyword. That means if you do it like that:

var flowersMystical = <ore:flowerMystical>;
<ore:flowerMystical>.add(<botania:flower:*>);

and then start you game once, it will be cached and is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants