Skip to content

7. Search Sources

LLytho edited this page Jun 22, 2023 · 1 revision

Search sources

As PonderJS is just an abstraction layer for KubeJS built on top of the Create Mod, we can utilize the Create Ponder sources to access additional functions. This allows us to determine the arguments accepted by a function and the values it returns. Some of the arguments supports type wrapping by either KubeJS or PonderJS. Some PonderJS wrappers can be found here. Keep in mind that the shown code here will be for 1.19 but should be relatively similar for version 1.18. You can switch the branch on GitHub to view the code for version 1.18.

Scene functions

The SceneBuilder we use can be found here Create SceneBuilder. Here we can see some utility functions like scene.scaleSceneView(float) or scene.setSceneOffsetY(float)

As an example for scene.world, we can take a look at WorldInstructions. We can find a lot of utility to work with selections or also to modify create contraptions. E.g. scene.world.setKineticSpeed(selection, speed)

You can find all instruction categories under:

Clone this wiki locally