Version 1.0.19b
This commit is contained in:
157
minecraft/kubejs/client_scripts/ponder/bigger_reactors.js
Normal file
157
minecraft/kubejs/client_scripts/ponder/bigger_reactors.js
Normal file
@@ -0,0 +1,157 @@
|
||||
Ponder.registry((event) => {
|
||||
event.create([
|
||||
'biggerreactors:reactor_power_tap',
|
||||
'biggerreactors:reactor_glass',
|
||||
'biggerreactors:reactor_casing',
|
||||
//'biggerreactors:reactor_manifold',
|
||||
//'biggerreactors:reactor_redstone_port',
|
||||
//'biggerreactors:reactor_computer_port',
|
||||
//'biggerreactors:reactor_coolant_port',
|
||||
'biggerreactors:reactor_access_port',
|
||||
'biggerreactors:reactor_terminal',
|
||||
'biggerreactors:reactor_control_rod',
|
||||
'biggerreactors:reactor_fuel_rod'])
|
||||
.scene('bir_1', 'Building a Bigger Reactor', 'kubejs:reactor', (scene, util) => {
|
||||
scene.world.showSection([4, 0, 4], Facing.down)
|
||||
scene.idle(5)
|
||||
|
||||
scene.overlay.showText(40).text("The edges must be").independent(20)
|
||||
scene.overlay.showText(40).text("reactor casing").independent(36);
|
||||
[1, 2, 3, 4].forEach(num => {
|
||||
scene.world.showSection([4, num, 4], Facing.down);
|
||||
scene.world.showSection([4, 0, 4 - num], Facing.down);
|
||||
scene.world.showSection([4 - num, 0, 4], Facing.down);
|
||||
scene.idle(5)
|
||||
});
|
||||
|
||||
[1, 2, 3].forEach(num => {
|
||||
scene.world.showSection([4, 4, 4 - num], Facing.down);
|
||||
scene.world.showSection([4 - num, 4, 4], Facing.down);
|
||||
scene.world.showSection([0, 0, 4 - num], Facing.down);
|
||||
scene.world.showSection([4 - num, 0, 0], Facing.down);
|
||||
scene.world.showSection([0, num, 4], Facing.down);
|
||||
scene.world.showSection([4, num, 0], Facing.down);
|
||||
scene.idle(5)
|
||||
})
|
||||
scene.world.showSection([4, 4, 0], Facing.down);
|
||||
scene.world.showSection([0, 4, 4], Facing.down);
|
||||
scene.world.showSection([0, 0, 0], Facing.down);
|
||||
scene.idle(5);
|
||||
[1, 2, 3].forEach(num => {
|
||||
scene.world.showSection([0, num, 0], Facing.down);
|
||||
scene.world.showSection([0, 4, 4 - num], Facing.down);
|
||||
scene.world.showSection([4 - num, 4, 0], Facing.down);
|
||||
scene.idle(5)
|
||||
})
|
||||
scene.world.showSection([0, 4, 0], Facing.down);
|
||||
scene.idle(5)
|
||||
|
||||
scene.addKeyframe()
|
||||
|
||||
scene.overlay.showText(35).text("The walls can be").independent(20)
|
||||
scene.overlay.showText(35).text("reactor casing").independent(36)
|
||||
scene.overlay.showText(35).text("or reactor glass").independent(52)
|
||||
//top glass
|
||||
scene.world.showSection([1, 4, 1, 3, 4, 3], Facing.down);
|
||||
scene.idle(5)
|
||||
|
||||
// bottom glass
|
||||
scene.world.showSection([1, 0, 1, 3, 0, 3], Facing.up);
|
||||
scene.idle(5)
|
||||
|
||||
// north glass
|
||||
scene.world.showSection([1, 1, 0, 3, 3, 0], Facing.south);
|
||||
scene.idle(5)
|
||||
|
||||
// south glass
|
||||
scene.world.showSection([1, 1, 4, 3, 3, 4], Facing.north);
|
||||
scene.idle(5)
|
||||
|
||||
// west glass
|
||||
scene.world.showSection([0, 1, 1, 0, 3, 3], Facing.east);
|
||||
scene.idle(5)
|
||||
|
||||
// east glass
|
||||
scene.world.showSection([4, 1, 1, 4, 3, 3], Facing.west);
|
||||
scene.idle(20)
|
||||
|
||||
scene.addKeyframe()
|
||||
|
||||
scene.overlay.showText(40).text("Fuel rods run floor").independent(20)
|
||||
scene.overlay.showText(40).text("to ceiling in a stack").independent(36)
|
||||
scene.idle(10)
|
||||
scene.world.hideSection([0, 1, 0, 3, 4, 3], Facing.up)
|
||||
scene.idle(15)
|
||||
scene.world.setBlock([2, 1, 2], 'biggerreactors:reactor_fuel_rod', false)
|
||||
scene.world.showSection([2, 1, 2], Facing.down)
|
||||
scene.idle(10)
|
||||
scene.world.setBlock([2, 2, 2], 'biggerreactors:reactor_fuel_rod', false)
|
||||
scene.world.showSection([2, 2, 2], Facing.down)
|
||||
scene.idle(10)
|
||||
scene.world.setBlock([2, 3, 2], 'biggerreactors:reactor_fuel_rod', false)
|
||||
scene.world.showSection([2, 3, 2], Facing.down)
|
||||
scene.idle(20)
|
||||
scene.world.showSection([0, 1, 0, 3, 4, 3], Facing.down)
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(35).text("A control rod sits atop the fuel").independent(20)
|
||||
scene.overlay.showText(35).text("rod stack in the top wall").independent(36)
|
||||
scene.idle(15)
|
||||
scene.world.setBlock([2, 4, 2], 'minecraft:air', true)
|
||||
scene.world.modifyBlock([1, 4, 2], (curState) => curState.with("east_connected", false), false);
|
||||
scene.world.modifyBlock([2, 4, 1], (curState) => curState.with("south_connected", false), false);
|
||||
scene.world.modifyBlock([3, 4, 2], (curState) => curState.with("west_connected", false), false);
|
||||
scene.world.modifyBlock([2, 4, 3], (curState) => curState.with("north_connected", false), false);
|
||||
scene.idle(10)
|
||||
scene.world.setBlock([2, 4, 2], 'biggerreactors:reactor_control_rod', false)
|
||||
scene.idle(20)
|
||||
|
||||
scene.addKeyframe()
|
||||
|
||||
scene.overlay.showText(35).text("A terminal needs to").independent(20)
|
||||
scene.overlay.showText(35).text("be included in a wall").independent(36)
|
||||
scene.idle(10)
|
||||
scene.world.setBlock([3, 1, 0], 'minecraft:air', true)
|
||||
scene.world.modifyBlock([2, 1, 0], (curState) => curState.with("east_connected", false), false);
|
||||
scene.world.modifyBlock([3, 2, 0], (curState) => curState.with("bottom_connected", false), false);
|
||||
scene.idle(10)
|
||||
scene.world.setBlock([3, 1, 0], 'biggerreactors:reactor_terminal', false)
|
||||
scene.idle(20)
|
||||
|
||||
scene.addKeyframe()
|
||||
|
||||
scene.overlay.showText(35).text("A power tap is used").independent(20)
|
||||
scene.overlay.showText(35).text("in a wall to get power").independent(36)
|
||||
scene.overlay.showText(35).text("out of the reactor").independent(52)
|
||||
scene.idle(15)
|
||||
scene.world.setBlock([1, 1, 0], 'minecraft:air', true)
|
||||
scene.world.modifyBlock([2, 1, 0], (curState) => curState.with("west_connected", false), false);
|
||||
scene.world.modifyBlock([1, 2, 0], (curState) => curState.with("bottom_connected", false), false);
|
||||
scene.idle(10)
|
||||
scene.world.setBlock([1, 1, 0], 'biggerreactors:reactor_power_tap', false)
|
||||
scene.idle(20)
|
||||
|
||||
scene.addKeyframe()
|
||||
|
||||
scene.overlay.showText(40).text("Access ports allow for").independent(20)
|
||||
scene.overlay.showText(40).text("insertion of uranium").independent(36)
|
||||
scene.overlay.showText(40).text("and removal of cyanite").independent(52)
|
||||
scene.idle(15)
|
||||
scene.world.setBlock([0, 1, 1], 'minecraft:air', true)
|
||||
scene.world.setBlock([0, 1, 3], 'minecraft:air', true)
|
||||
scene.world.modifyBlock([0, 1, 2], (curState) => curState.with("north_connected", false).with("south_connected", false), false);
|
||||
scene.world.modifyBlock([0, 2, 1], (curState) => curState.with("bottom_connected", false), false);
|
||||
scene.world.modifyBlock([0, 2, 3], (curState) => curState.with("bottom_connected", false), false);
|
||||
scene.idle(10)
|
||||
scene.world.setBlock([0, 1, 1], Block.id('biggerreactors:reactor_access_port', { 'portdirection': 'inlet' }), true)
|
||||
scene.world.setBlock([0, 1, 3], Block.id('biggerreactors:reactor_access_port', { 'portdirection': 'outlet' }), true)
|
||||
scene.idle(20)
|
||||
|
||||
scene.addKeyframe()
|
||||
|
||||
let outerWall = util.select.fromTo(0, 0, 0, 4, 4, 4).substract(util.select.fromTo(1, 1, 1, 3, 3, 3))
|
||||
scene.world.modifyBlocks(outerWall, (curState) => curState.with('assembled', true), false)
|
||||
scene.world.modifyBlock([0, 1, 3], () => Block.id('biggerreactors:reactor_access_port', { 'portdirection': 'outlet' }), false)
|
||||
scene.world.modifyBlocks([1, 0, 1, 3, 0, 3], () => Block.id('biggerreactors:reactor_casing', { 'assembled': true, 'x_axis': 'middle', 'z_axis': 'middle', 'y_axis': 'lower' }), false)
|
||||
scene.idle(20)
|
||||
})
|
||||
})
|
||||
113
minecraft/kubejs/client_scripts/ponder/corail.js
Normal file
113
minecraft/kubejs/client_scripts/ponder/corail.js
Normal file
@@ -0,0 +1,113 @@
|
||||
Ponder.registry((event) => {
|
||||
event.create([
|
||||
"tombstone:decorative_grave_simple",
|
||||
"tombstone:decorative_grave_normal",
|
||||
"tombstone:decorative_grave_cross",
|
||||
"tombstone:decorative_tombstone",
|
||||
"tombstone:decorative_subaraki_grave",
|
||||
"tombstone:decorative_grave_original",
|
||||
"tombstone:grave_dust",
|
||||
"tombstone:essence_of_undeath"
|
||||
]).scene("tomb1", "Getting Started with Corail Tombstone", (scene, util) => {
|
||||
scene.showBasePlate()
|
||||
scene.idle(10)
|
||||
|
||||
const pos1 = util.grid.at(1, 0, 1)
|
||||
const pos1top = util.vector.topOf(pos1)
|
||||
const pos2 = util.grid.at(1, 0, 3)
|
||||
const pos2top = util.vector.topOf(pos2)
|
||||
const pos3 = util.grid.at(3, 0, 3)
|
||||
const pos3top = util.vector.topOf(pos3)
|
||||
const pos4 = util.grid.at(3, 0, 1)
|
||||
const pos4top = util.vector.topOf(pos4)
|
||||
const center = util.grid.at(2, 0, 2)
|
||||
const centerTop = util.vector.topOf(center)
|
||||
|
||||
const zombie = scene.world.createEntity("zombie", pos1top)
|
||||
scene.idle(10)
|
||||
const skellie = scene.world.createEntity("skeleton", pos2top)
|
||||
scene.idle(10)
|
||||
scene.text(60, "Kill Undead Mobs", [1.5, 1, 1.5]).placeNearTarget()
|
||||
const stray = scene.world.createEntity("stray", pos3top)
|
||||
scene.idle(10)
|
||||
const zpiglin = scene.world.createEntity("zombified_piglin", pos4top)
|
||||
scene.idle(9)
|
||||
scene.world.removeEntity(zombie)
|
||||
scene.idle(1)
|
||||
const drowned = scene.world.createEntity("drowned", pos1top)
|
||||
scene.idle(9)
|
||||
scene.world.removeEntity(skellie)
|
||||
scene.idle(1)
|
||||
const wskellie = scene.world.createEntity("wither_skeleton", pos2top)
|
||||
scene.idle(9)
|
||||
scene.world.removeEntity(stray)
|
||||
scene.idle(1)
|
||||
const husk = scene.world.createEntity("husk", pos3top)
|
||||
scene.idle(9)
|
||||
scene.world.removeEntity(zpiglin)
|
||||
scene.idle(1)
|
||||
const hoglin = scene.world.createEntity("zoglin", pos4top)
|
||||
scene.idle(10)
|
||||
scene.world.removeEntity(drowned)
|
||||
scene.idle(10)
|
||||
scene.world.removeEntity(wskellie)
|
||||
scene.text(60, "This has a rare chance to drop Grave's Dust", [1.5, 1, 1.5]).placeNearTarget()
|
||||
scene.world.createItemEntity(centerTop, util.vector.of(-0.06, 0.4, -0.06), "tombstone:grave_dust")
|
||||
scene.idle(10)
|
||||
scene.world.removeEntity(husk)
|
||||
scene.idle(10)
|
||||
scene.world.removeEntity(hoglin)
|
||||
scene.text(60, "And a rarer chance to drop Essence of Undeath", [3.5, 1, 3.5]).placeNearTarget()
|
||||
scene.world.createItemEntity(centerTop, util.vector.of(0.06, 0.4, 0.06), "tombstone:essence_of_undeath")
|
||||
})
|
||||
.scene("tomb2", "Graves", (scene, util) => {
|
||||
scene.showBasePlate()
|
||||
scene.idle(10)
|
||||
scene.world.showSection([1, 1, 2], Facing.down)
|
||||
scene.world.showSection([3, 1, 2], Facing.down)
|
||||
scene.overlay.showText(100)
|
||||
.text("Graves come in two marble colors")
|
||||
.independent(50)
|
||||
.placeNearTarget()
|
||||
scene.overlay.showText(100)
|
||||
.text("and six different styes")
|
||||
.independent(66)
|
||||
.placeNearTarget();
|
||||
["tombstone:decorative_grave_simple", "tombstone:decorative_grave_normal", "tombstone:decorative_grave_cross", "tombstone:decorative_tombstone", "tombstone:decorative_subaraki_grave", "tombstone:decorative_grave_original"].forEach(name => {
|
||||
scene.world.setBlock([1, 1, 2], Block.id(name), false)
|
||||
scene.idle(10)
|
||||
scene.world.setBlock([3, 1, 2], Block.id(name).with("model_texture", "1"), false)
|
||||
scene.idle(10)
|
||||
})
|
||||
scene.overlay.showText(100)
|
||||
.text("30 minutes after a grave is placed")
|
||||
.independent(40)
|
||||
.placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(100)
|
||||
.text("or the previous soul is used")
|
||||
.independent(56)
|
||||
.placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(100)
|
||||
.text("a new soul will spawn")
|
||||
.independent(72)
|
||||
.placeNearTarget()
|
||||
scene.idle(20)
|
||||
scene.addKeyframe()
|
||||
const black = util.grid.at(1, 0, 2)
|
||||
const blackTop = util.vector.topOf(black)
|
||||
const lightning1 = scene.world.createEntity("lightning_bolt", blackTop)
|
||||
scene.idle(10)
|
||||
scene.world.removeEntity(lightning1)
|
||||
const white = util.grid.at(3, 0, 2)
|
||||
const whiteTop = util.vector.topOf(white)
|
||||
const lightning2 = scene.world.createEntity("lightning_bolt", whiteTop)
|
||||
scene.idle(10)
|
||||
scene.world.removeEntity(lightning2)
|
||||
scene.particles.rotationIndicator(60, [1, 2, 2], 0.3, 0.3, "Y").rotationSpeed(5).color("#D133ED")
|
||||
scene.idle(10)
|
||||
scene.particles.rotationIndicator(60, [3, 2, 2], 0.3, 0.3, "Y").rotationSpeed(5).color("#00FFFC")
|
||||
scene.idle(100)
|
||||
})
|
||||
})
|
||||
88
minecraft/kubejs/client_scripts/ponder/pylons.js
Normal file
88
minecraft/kubejs/client_scripts/ponder/pylons.js
Normal file
@@ -0,0 +1,88 @@
|
||||
Ponder.registry((event) => {
|
||||
event.create("pylons:harvester_pylon")
|
||||
.scene("harvest1", "Using the Harvester Pylon", "farm", (scene, util) => {
|
||||
scene.showBasePlate()
|
||||
scene.overlay.showText(40).text("The Harvester Pylon").independent(20).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(40).text("is placed in the water").independent(36).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(40).text("block for the farm").independent(52).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.world.hideSection([0, 0, 0, 9, 0, 3], Facing.DOWN)
|
||||
scene.idle(10)
|
||||
scene.showControls(20, [4.5, 1, 4.5], "down")
|
||||
.rightClick()
|
||||
.withItem("pylons:harvester_pylon")
|
||||
scene.idle(10)
|
||||
scene.world.modifyBlock([4, 0, 4], () => Block.id("pylons:harvester_pylon").with("waterlogged", "true"), false)
|
||||
scene.idle(20)
|
||||
scene.addLazyKeyframe()
|
||||
scene.overlay.showText(40).text("The Harvester Pylon").independent(20).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(40).text("needs a hoe in it's").independent(36).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(40).text("inventory to operate").independent(52).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.showControls(20, [4.5, 1, 4.5], "down")
|
||||
.withItem("minecraft:stone_hoe")
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(40).text("it's durability will be").independent(68).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(40).text("used during harvesting").independent(84).placeNearTarget()
|
||||
scene.idle(30)
|
||||
scene.addLazyKeyframe()
|
||||
scene.overlay.showText(40).text("The Harvester Pylon").independent(20).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(40).text("needs storage above it").independent(36).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(40).text("to place harvested items into").independent(52).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.showControls(20, [4.5, 2, 4.5], "down")
|
||||
.rightClick()
|
||||
.withItem("minecraft:barrel")
|
||||
scene.idle(10)
|
||||
scene.world.showSection([4, 1, 4], Facing.down)
|
||||
scene.idle(20)
|
||||
scene.addLazyKeyframe()
|
||||
scene.world.showSection([0, 0, 0, 9, 0, 3], Facing.UP)
|
||||
scene.idle(10)
|
||||
let threeby = util.select.fromTo(3, 1, 3, 5, 1, 5).substract(util.select.position(4,1,4))
|
||||
let fiveby = util.select.fromTo(2, 1, 2, 6, 1, 6).substract(util.select.position(4,1,4))
|
||||
let sevenby = util.select.fromTo(1, 1, 1, 7, 1, 7).substract(util.select.position(4,1,4))
|
||||
let nineby = util.select.fromTo(0, 1, 0, 8, 1, 8).substract(util.select.position(4,1,4))
|
||||
scene.world.setBlocks(nineby, Block.id("minecraft:wheat",{age:"7"}),false)
|
||||
scene.world.showSection(nineby, Facing.UP)
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(60).text("The Harvester Pylon").independent(20).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(60).text("can be set to harvest").independent(36).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(60).text("in an area of:").independent(52).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(20).text("3x3").independent(68).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showOutline(PonderPalette.GREEN, "threeby", threeby, 30)
|
||||
scene.idle(10)
|
||||
scene.world.modifyBlocks(threeby, (curState) => curState.with("age",0), false)
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(20).text("5x5").independent(68).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showOutline(PonderPalette.GREEN, "fiveby", fiveby, 30)
|
||||
scene.idle(10)
|
||||
scene.world.modifyBlocks(fiveby, (curState) => curState.with("age",0), false)
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(20).text("7x7").independent(68).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showOutline(PonderPalette.GREEN, "sevenby", sevenby, 30)
|
||||
scene.idle(10)
|
||||
scene.world.modifyBlocks(sevenby, (curState) => curState.with("age",0), false)
|
||||
scene.idle(10)
|
||||
scene.overlay.showText(20).text("9x9").independent(68).placeNearTarget()
|
||||
scene.idle(10)
|
||||
scene.overlay.showOutline(PonderPalette.GREEN, "nineby", nineby, 30)
|
||||
scene.idle(10)
|
||||
scene.world.modifyBlocks(nineby, (curState) => curState.with("age",0), false)
|
||||
scene.idle(10)
|
||||
})
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user