ZenScript
ZenScript copied to clipboard
[Bug] custom ore dictionary entry
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
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.