0.11.0: remove DAP ur Homies and Player Animation Library; tutorial: energy scene works in Rhino

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fulldroper
2026-10-10 07:53:05 +03:00
co-authored by Claude Opus 5.5
parent a8d0f7de24
commit d2d5f77990
5 changed files with 13 additions and 45 deletions
+10 -6
View File
@@ -26,13 +26,17 @@ function say(scene, ticks, text, pos, colour, keyframe) {
scene.idle(ticks + 10)
}
// Create's own kinetic helper; in KubeJS `world` is a property, not a method
// Create's own kinetic helper. In KubeJS `world` is a property, not a method; and Rhino rejects a
// const/let declared inside try on a second call, so there are no declarations in the try at all.
function kineticWorld(scene) {
var builder = new CreateScene(scene)
return typeof builder.world === 'function' ? builder.world() : builder.world
}
function setSpeed(scene, sel, speed) {
if (!CreateScene) return
try {
const cs = new CreateScene(scene)
const w = typeof cs.world === 'function' ? cs.world() : cs.world
w.setKineticSpeed(sel, speed)
kineticWorld(scene).setKineticSpeed(sel, speed)
} catch (e) {
console.warn('[createrp] setKineticSpeed: ' + e)
}
@@ -53,9 +57,9 @@ function addressedBox(address) {
// посилки, що крутяться на одному вузлі ланцюга, їдуть до іншого (Create: boxTransfer)
function chainTransfer(scene, util, to, from) {
scene.world.modifyBlockEntity(util.grid.at(from[0], from[1], from[2]), ChainConveyor, be => {
const it = be.getLoopingPackages().iterator()
var it = be.getLoopingPackages().iterator()
while (it.hasNext()) {
const p = it.next()
var p = it.next()
p.chainPosition = 0
be.addTravellingPackage(p, util.grid.at(to[0] - from[0], to[1] - from[1], to[2] - from[2]))
it.remove()