Ponder for KubeJS

Ponder for KubeJS

21M Downloads

Recognizing world() function in SceneBuilder interface as an object

VechniMetel opened this issue · 4 comments

commented

Minecraft Version

1.20.1

Mod Version

2.0.5

Describe the bug!

Added a set of Ponder earlier in Create 0.5.1j environment and running well.
After updating to Create 6.0.4 environment we found .world changed into .world() and adjusted out KubeJS codes, accepting only Type Errors telling us world is an object instead of a function.
Cannot be sure if it's wrong with our code or if it's some error with Create API change.
Our codes are here.

Crash Report

No response

Log

latest.log and kubejs/client.log

Additions and Modifications

Yes

Additions and Modifications Description

our codes are here

Did the issue happen in singleplayer or on a server?

Singleplayer

commented

No issue. I renamed everything to fit into the old style so that scene.world etc. still works. Getters and Setters are automatically beaned in KubeJS.

https://github.com/AlmostReliable/ponderjs/blob/1.20.1-forge/src/main/java/com/almostreliable/ponderjs/mixin/PonderSceneBuilderMixin.java#L22-L40

GitHub
A Minecraft mod for packdevs to create custom Ponder scenes with KubeJS. - AlmostReliable/ponderjs
commented

Well, we tried the older format and found world.hideIndependentSectionImmediately() function - which we used a lot - went disabled... and we also tried the new format as ProbeJS suggested to compile, but met the conflict as titled... Separate the old format to allow the newer format to work maybe, PLEEEEEAAAASSSEE

commented

And also, we tried to put connected AE cables into the nbt file, but when shown in Ponder, cables lost connection to each other... this didn't happen in the older Create 0.5.1j environment.

commented

Well, we tried the older format and found world.hideIndependentSectionImmediately() function - which we used a lot - went disabled... and we also tried the new format as ProbeJS suggested to compile, but met the conflict as titled... Separate the old format to allow the newer format to work maybe, PLEEEEEAAAASSSEE

Code still works. I don't know how ProbeJS collect that data here as it should be able to read remaps. Ask the author of ProbeJS please for this. If the author needs something from me, he can always dm me.

And also, we tried to put connected AE cables into the nbt file, but when shown in Ponder, cables lost connection to each other... this didn't happen in the older Create 0.5.1j environment.

I know AE added something for this. Maybe they also need to update something. But before that, check if everything listed here https://github.com/AppliedEnergistics/Applied-Energistics-2/blob/main/ponderjs.md

GitHub
A Minecraft Mod about Matter, Energy and using them to conquer the world.. - AppliedEnergistics/Applied-Energistics-2