Adding KubeJSable to Addons#104
Conversation
|
|
One trick you can employ is to write your contents of tabs in a variable callout block. You create them like this: and use them later like this: (replace |
…oid` rather than `{}`
…ix my sub/inner tabs
Ok, I got what your were putting down |
|
Also, FYI: You can preview your changes: |
Nice! |
KonSola5
left a comment
There was a problem hiding this comment.
Everything renders properly, and code blocks are properly formatted.
|
After discussing this a bit with Don, I'll request some changes regarding the contents: This event is fired from `ForgeSablePrePhysicsTickEvent` just before the next physics tick.
The event object itself includes a `SubLevelPhysicsSystem` (`physicsSystem`) instance and a `timeStep` valueAre those implementation details really necessary? Also, what `[ts]distanceSquaredWithSubLevels(level: Level, a: Vector3dc, b: Vector3dc): double`(all the type definitions) Please try to explain, what each parameter is, and maybe explain what can be passed in place of the parameter, if applicable. **Syntax**
```js
something.distanceSquaredWithSubLevels(level, a, b)
```
**Parameters**
- `[js]level` - A `Level` (explain what kind of level this should be)
- `[js]a` - A `Vector3dc` representing a first point in 3D space. It may be a JS array of exactly 3 number elements representing the x, y, and z coordinate respectively, for example `[js]\[10, 25, -5.5]`.
- `[js]b` - A `Vector3dc` representing a second point in 3D space. It may be a JS array of exactly 3 number elements representing the x, y, and z coordinate respectively, for example `[js]\[10, 25, -5.5]`.
**Return value**
Square of a distance between point `a` and point `b`.
**Example**
(maybe even an example of usage, if this is notable enough)where |
|
This is a general type wrapper for |
|
Hmm, if this is the case then you should consider adding some type wrappers to your KubeJSable addon to make using these more scripter-friendly. |
Ok, how do I do this? I know where in the plugin to do it, but have no concept of the actual implementation of a type wrapper |
|
Alternatively, |
|
Ok, I have re-written the mod to use existing type wrapped objects and adding bindings for |








Proposed Changes
I am adding a page to the Wiki under Addons for KubeJSable, my new addon.
This page contains a text blob and two tabs. The first tab is
Eventsand under it will be listed the three exposed Sable eventsPre,Post, andReady, as headings, with a text blob explaining the event and a code block showcasing how to intercept them.The second tab is
Bindingswhich will have 4 inner tabs for Shared/Common, Server, Client, and Startup specific bindings. Each inner tab shows the available bindings and all exposed methods with a list.