Ponder for KubeJS

Ponder for KubeJS

21M Downloads

Text is not populating its fields

Bazyliii opened this issue ยท 5 comments

commented

Minecraft Version

1.21.1

Mod Version

2.1.1

Describe the bug!

Using something like this:
Ponder.tags(event => {
event.createTag("motlen_vents:vents", "molten_vents:active_molten_veridium", "Molten Vents", "Infinite resources!", [
"molten_vents:dormant_molten_asurine",
"molten_vents:dormant_molten_ochrum",
"molten_vents:dormant_molten_scoria",
"molten_vents:dormant_molten_scorchia",
"molten_vents:dormant_molten_crimsite",
"molten_vents:dormant_molten_veridium",
"molten_vents:active_molten_asurine",
"molten_vents:active_molten_ochrum",
"molten_vents:active_molten_scoria",
"molten_vents:active_molten_scorchia",
"molten_vents:active_molten_crimsite",
"molten_vents:active_molten_veridium"
])
})
Ponder.registry(event => {
event.create("molten_vents:active_molten_asurine")
.scene("molten_asurine", "Get started with Molten Asurine!", (scene, util) => {
scene.showStructure()
scene.idle(10)
const center_block = util.grid.at(2, 1, 2)
const center_top = util.vector.topOf(center_block)
scene.world.setBlock(center_block, "molten_vents:dormant_molten_asurine", false)
scene.idle(20)
scene.addKeyframe()
scene.world.setBlock(center_top, "minecraft:tnt", false)
scene.idle(10)
scene.showControls(120, center_block.above(2), "down").rightClick().withItem("minecraft:flint_and_steel")
scene.text(50, "Detonate dormant molten vent to activate it", [2.5, 2.5, 2.5]).placeNearTarget()
scene.idle(50)
scene.addKeyframe()
})
})
i get:

Image

Crash Report

No response

Log

No response

Additions and Modifications

Yes

Additions and Modifications Description

No response

Did the issue happen in singleplayer or on a server?

Singleplayer

commented

Then I have to look into. Does it only happen when u start the game or also when u are ingame and reload client scripts /kubejs reload client-scripts and then reload ponder /ponder reload?

commented
  1. You have a typo in your tag name motlen_vents:vents
  2. Don't use mod ids for mods that have ponder integration. There is a current issue with it in ponderjs because I dynamically create the lang file and when using their mod id it triggers their own ponder scenes and they are not fully initialized that early in the game.
commented

Oh, okay i fixed that typo. I'm not sure about point 2. Molten Vents mod doesn't have any ponders, thats why I wanted to create one :) Error still persists sadly

commented

I was running game from scratch every time. Now I tried /ponder reload and boom it works. Thank you!

commented

Yeah lang reload happens to early ... I will either remove that or try to find a later point to gen lang automatically ...