Custom property [basictypemars] for block [galacticraftplanets:mars] are set incorrectly for topBlock and fillerBlock.
donqixot opened this issue ยท 6 comments
Apologies for bombarding with issues, I read all articles before I submit.
I am using MC 1.11.2, forge 13.20.1.2530, BiomeTweaker-1.11.2-3.1.304, BiomeTweakerCore-1.11.2-1.0.18, GalacticraftCore-1.11.2-4.0.0.118, Galacticraft-Planets-1.11.2-4.0.0.118.
I am trying to set custom property for my block, here is the script:
Tweaker.createBiome("MarsPlus")
mars = forBiomes("biometweaker:MarsPlus")
mars.set("name", "Mars Plus")
myBlock = forBlock("galacticraftplanets:mars")
myBlock.setProperty("basictypemars", "mars_surface")
mars.set("topBlock", myBlock)
I see that command worked because there is new block for topBlock in json file created, however, it says:
"Top Block": "galacticraftplanets:mars[basictypemars\u003dore_copper_mars]"
When I try to create dimension using my new biome, I do indeed get copper ore on top. I tried this syntax:
myBlock = forBlock("galacticraftplanets:mars[basictypemars\u003dmars_surface]")
mars.set("topBlock", myBlock)
Still doesn't help. Anything I am doing wrong? For comparison, addActualFillerBlock() and registerGenBlockRep() work correctly, so this script is fine:
myBlock = forBlock("galacticraftplanets:mars")
myBlock.setProperty("basictypemars", "mars_stone")
mars.addActualFillerBlock(myBlock)
mars.registerGenBlockRep("minecraft:stone", myBlock)
Weird, I just tried again, wanted to take a snapshot, and now it is correct! The only change was this line:
mars.addToGeneration("DESERT", 100)
I will test more...
Turns out, there was indirect error:
[21:38:57] [Client thread/INFO] [biometweaker]: Beginning script parsing...
[21:38:57] [Client thread/INFO] [biometweaker]: Finished script parsing.
[21:39:00] [Client thread/INFO]: [STDERR]: Potential problem: Galacticraft did not complete injection of bytecode into: bqe (4 / 6)
If I run script second time, after initial load of the game, then it's fine. Should I run this script at a different phase (post BIOME_BLOCKS)?
Here is snapshot with script loaded only once:
And here with script reloaded second time after game started:
I see that it may be GC interaction issue, but if you can suggest anything, I'd really appreciate!