use of com.simibubi.create.foundation.ponder.Selection in project Create by Creators-of-Create.
the class BeltScenes method directions.
public static void directions(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("belt_directions", "Valid Orientations for Mechanical Belts");
scene.configureBasePlate(0, 0, 5);
scene.setSceneOffsetY(-1);
scene.showBasePlate();
scene.idle(5);
ElementLink<WorldSectionElement> leftShaft = scene.world.showIndependentSection(util.select.position(4, 1, 0), Direction.DOWN);
ElementLink<WorldSectionElement> rightShaft = scene.world.showIndependentSection(util.select.position(0, 1, 0), Direction.DOWN);
scene.world.moveSection(leftShaft, util.vector.of(0, 0, 2), 0);
scene.world.moveSection(rightShaft, util.vector.of(0, 0, 2), 0);
scene.idle(1);
scene.world.moveSection(leftShaft, util.vector.of(-1, 0, 0), 10);
scene.world.moveSection(rightShaft, util.vector.of(1, 1, 0), 10);
scene.idle(20);
Vec3 from = util.vector.centerOf(3, 1, 2);
Vec3 to = util.vector.centerOf(1, 2, 2);
scene.overlay.showLine(PonderPalette.RED, from, to, 70);
scene.idle(10);
scene.overlay.showLine(PonderPalette.GREEN, to.add(-1, -1, 0), from, 60);
scene.overlay.showLine(PonderPalette.GREEN, from.add(0, 3, 0), from, 60);
scene.idle(20);
scene.overlay.showText(60).colored(PonderPalette.RED).placeNearTarget().pointAt(to).text("Belts cannot connect in arbitrary directions");
scene.idle(70);
from = util.vector.centerOf(4, 1, 2);
to = util.vector.centerOf(0, 1, 2);
scene.world.moveSection(leftShaft, util.vector.of(1, 0, 0), 10);
scene.world.moveSection(rightShaft, util.vector.of(-1, -1, 0), 10);
scene.idle(10);
scene.overlay.showLine(PonderPalette.GREEN, from, to, 40);
scene.idle(10);
scene.overlay.showText(40).colored(PonderPalette.GREEN).placeNearTarget().pointAt(to).attachKeyFrame().text("1. They can connect horizontally");
scene.idle(20);
Selection firstBelt = util.select.fromTo(4, 1, 1, 0, 1, 1);
ElementLink<WorldSectionElement> belt = scene.world.showIndependentSection(firstBelt, Direction.SOUTH);
scene.world.moveSection(belt, util.vector.of(0, 0, 1), 0);
scene.idle(20);
scene.world.hideIndependentSection(belt, Direction.SOUTH);
scene.idle(15);
from = util.vector.centerOf(3, 3, 2);
to = util.vector.centerOf(1, 1, 2);
scene.world.moveSection(leftShaft, util.vector.of(-1, 2, 0), 10);
scene.world.moveSection(rightShaft, util.vector.of(1, 0, 0), 10);
scene.idle(10);
scene.world.rotateSection(leftShaft, 0, 0, 25, 5);
scene.world.rotateSection(rightShaft, 0, 0, 25, 5);
scene.overlay.showLine(PonderPalette.GREEN, from, to, 40);
scene.idle(10);
scene.overlay.showText(40).colored(PonderPalette.GREEN).placeNearTarget().pointAt(to).attachKeyFrame().text("2. They can connect diagonally");
scene.idle(20);
Selection secondBelt = util.select.fromTo(3, 3, 2, 1, 1, 2);
belt = scene.world.showIndependentSection(secondBelt, Direction.SOUTH);
scene.idle(20);
scene.world.hideIndependentSection(belt, Direction.SOUTH);
scene.idle(15);
from = util.vector.centerOf(2, 4, 2);
to = util.vector.centerOf(2, 1, 2);
scene.world.moveSection(leftShaft, util.vector.of(-1, 1, 0), 10);
scene.world.moveSection(rightShaft, util.vector.of(1, 0, 0), 10);
scene.idle(10);
scene.world.rotateSection(rightShaft, 0, 0, -25, 5);
scene.overlay.showLine(PonderPalette.GREEN, from, to, 40);
scene.idle(10);
scene.overlay.showText(40).colored(PonderPalette.GREEN).placeNearTarget().pointAt(to).attachKeyFrame().text("3. They can connect vertically");
scene.idle(20);
Selection thirdBelt = util.select.fromTo(2, 1, 3, 2, 4, 3);
belt = scene.world.showIndependentSection(thirdBelt, Direction.SOUTH);
scene.world.moveSection(belt, util.vector.of(0, 0, -1), 0);
scene.idle(20);
scene.world.hideIndependentSection(belt, Direction.SOUTH);
scene.idle(15);
from = util.vector.centerOf(4, 1, 2);
to = util.vector.centerOf(0, 1, 2);
scene.world.moveSection(leftShaft, util.vector.of(2, -3, 0), 10);
scene.world.moveSection(rightShaft, util.vector.of(-2, 0, 0), 10);
scene.idle(10);
scene.world.rotateSection(rightShaft, 90, 0, -25, 5);
scene.world.rotateSection(leftShaft, 90, 0, -50, 5);
scene.overlay.showLine(PonderPalette.GREEN, from, to, 60);
scene.idle(10);
scene.overlay.showText(60).colored(PonderPalette.GREEN).placeNearTarget().pointAt(to).attachKeyFrame().text("4. And they can connect vertical shafts horizontally");
scene.idle(20);
Selection fourthBelt = util.select.fromTo(4, 1, 4, 0, 1, 4);
belt = scene.world.showIndependentSection(fourthBelt, Direction.DOWN);
scene.world.moveSection(belt, util.vector.of(0, 1 / 512f, -2), 0);
scene.idle(40);
scene.world.hideIndependentSection(belt, Direction.UP);
scene.idle(15);
scene.world.hideIndependentSection(leftShaft, Direction.UP);
scene.world.hideIndependentSection(rightShaft, Direction.UP);
scene.idle(15);
scene.world.showSection(firstBelt, Direction.DOWN);
scene.idle(5);
scene.world.showSection(secondBelt, Direction.DOWN);
scene.idle(5);
scene.world.showSection(thirdBelt, Direction.DOWN);
scene.idle(5);
scene.world.showSection(fourthBelt, Direction.DOWN);
scene.idle(10);
scene.overlay.showText(160).text("These are all possible directions. Belts can span any Length between 2 and 20 blocks");
scene.markAsFinished();
}
use of com.simibubi.create.foundation.ponder.Selection in project Create by Creators-of-Create.
the class BeltScenes method beltConnector.
public static void beltConnector(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("belt_connector", "Using Mechanical Belts");
scene.configureBasePlate(0, 0, 5);
scene.showBasePlate();
scene.world.showSection(util.select.position(3, 0, 5), Direction.UP);
scene.idle(5);
scene.world.showSection(util.select.fromTo(4, 1, 3, 4, 1, 5), Direction.DOWN);
ElementLink<WorldSectionElement> shafts = scene.world.showIndependentSection(util.select.fromTo(0, 1, 3, 4, 1, 3), Direction.DOWN);
scene.world.moveSection(shafts, util.vector.of(0, 0, -1), 0);
scene.world.setKineticSpeed(util.select.position(0, 1, 3), 0);
scene.idle(20);
BlockPos backEnd = util.grid.at(4, 1, 2);
BlockPos frontEnd = util.grid.at(0, 1, 2);
ItemStack beltItem = AllItems.BELT_CONNECTOR.asStack();
Vec3 backEndCenter = util.vector.centerOf(backEnd);
AABB connectBB = new AABB(backEndCenter, backEndCenter);
AABB shaftBB = AllBlocks.SHAFT.getDefaultState().setValue(ShaftBlock.AXIS, Axis.Z).getShape(null, null).bounds();
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(backEnd), Pointing.DOWN).rightClick().withItem(beltItem), 57);
scene.idle(7);
scene.overlay.chaseBoundingBoxOutline(PonderPalette.GREEN, backEnd, shaftBB.move(backEnd), 42);
scene.overlay.chaseBoundingBoxOutline(PonderPalette.BLACK, backEndCenter, connectBB, 50);
scene.idle(20);
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(frontEnd), Pointing.DOWN).rightClick().withItem(beltItem), 37);
scene.idle(7);
scene.overlay.chaseBoundingBoxOutline(PonderPalette.GREEN, frontEnd, shaftBB.move(frontEnd), 17);
scene.overlay.chaseBoundingBoxOutline(PonderPalette.BLACK, backEndCenter, connectBB.expandTowards(-4, 0, 0), 20);
scene.idle(20);
scene.world.moveSection(shafts, util.vector.of(0, -2, 0), 0);
scene.world.showSection(util.select.fromTo(0, 1, 2, 4, 1, 2), Direction.SOUTH);
scene.idle(20);
scene.overlay.showText(80).text("Right-Clicking two shafts with a belt item will connect them together").attachKeyFrame().placeNearTarget().pointAt(util.vector.topOf(2, 1, 2));
scene.idle(90);
Vec3 falseSelection = util.vector.topOf(backEnd.south(1));
scene.overlay.showControls(new InputWindowElement(falseSelection, Pointing.DOWN).rightClick().withItem(beltItem), 37);
scene.idle(7);
scene.overlay.chaseBoundingBoxOutline(PonderPalette.RED, backEnd, shaftBB.move(backEnd.south(1)), 50);
scene.overlay.showText(80).colored(PonderPalette.RED).text("Accidental selections can be canceled with Right-Click while Sneaking").attachKeyFrame().placeNearTarget().pointAt(util.vector.centerOf(backEnd.south(1)));
scene.idle(43);
scene.overlay.showControls(new InputWindowElement(falseSelection, Pointing.DOWN).rightClick().withItem(beltItem).whileSneaking(), 20);
scene.idle(60);
BlockPos shaftLocation = frontEnd.east();
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(shaftLocation), Pointing.DOWN).rightClick().withItem(AllBlocks.SHAFT.asStack()), 50);
scene.idle(7);
scene.world.modifyBlock(shaftLocation, s -> s.setValue(BeltBlock.PART, BeltPart.PULLEY), true);
scene.idle(10);
scene.overlay.showText(43).text("Additional Shafts can be added throughout the Belt").attachKeyFrame().placeNearTarget().pointAt(util.vector.blockSurface(shaftLocation, Direction.NORTH));
scene.idle(50);
Selection attachedShafts = util.select.fromTo(0, 1, 1, 1, 1, 1);
scene.world.showSection(attachedShafts, Direction.SOUTH);
scene.world.setKineticSpeed(attachedShafts, 32);
scene.idle(10);
scene.effects.rotationDirectionIndicator(util.grid.at(0, 1, 1));
scene.effects.rotationDirectionIndicator(util.grid.at(1, 1, 1));
scene.idle(20);
scene.overlay.showText(50).text("Shafts connected via Belts will rotate with Identical Speed and Direction").placeNearTarget().pointAt(util.vector.blockSurface(util.grid.at(0, 1, 1), Direction.NORTH));
scene.idle(60);
scene.world.hideSection(attachedShafts, Direction.NORTH);
scene.idle(20);
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(shaftLocation), Pointing.DOWN).rightClick().withWrench(), 50);
scene.idle(7);
scene.world.modifyBlock(shaftLocation, s -> s.setValue(BeltBlock.PART, BeltPart.MIDDLE), true);
scene.idle(10);
scene.overlay.showText(50).text("Added shafts can be removed using the wrench").attachKeyFrame().placeNearTarget().pointAt(util.vector.blockSurface(shaftLocation, Direction.NORTH));
scene.idle(70);
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(shaftLocation.east()), Pointing.DOWN).rightClick().withItem(new ItemStack(Items.BLUE_DYE)), 50);
scene.idle(7);
scene.world.modifyTileNBT(util.select.fromTo(0, 1, 2, 4, 1, 2), BeltTileEntity.class, nbt -> NBTHelper.writeEnum(nbt, "Dye", DyeColor.BLUE));
scene.idle(20);
scene.overlay.showText(80).colored(PonderPalette.BLUE).text("Mechanical Belts can be dyed for aesthetic purposes").placeNearTarget().pointAt(util.vector.topOf(shaftLocation.east()));
}
use of com.simibubi.create.foundation.ponder.Selection in project Create by Creators-of-Create.
the class CartAssemblerScenes method anchor.
public static void anchor(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("cart_assembler", "Moving Structures using Cart Assemblers");
scene.configureBasePlate(0, 0, 5);
scene.scaleSceneView(.9f);
scene.world.showSection(util.select.layer(0), Direction.UP);
scene.idle(5);
BlockPos assemblerPos = util.grid.at(2, 1, 2);
scene.world.setBlock(assemblerPos, Blocks.RAIL.defaultBlockState(), false);
for (int z = 0; z < 5; z++) {
scene.world.showSection(util.select.position(2, 1, z), Direction.DOWN);
scene.idle(2);
}
BlockPos leverPos = util.grid.at(0, 1, 2);
Selection toggle = util.select.fromTo(assemblerPos, leverPos);
scene.idle(10);
scene.overlay.showControls(new InputWindowElement(util.vector.centerOf(assemblerPos), Pointing.DOWN).rightClick().withItem(AllBlocks.CART_ASSEMBLER.asStack()), 30);
scene.idle(7);
scene.world.setBlock(assemblerPos, AllBlocks.CART_ASSEMBLER.getDefaultState().setValue(CartAssemblerBlock.RAIL_SHAPE, RailShape.NORTH_SOUTH).setValue(CartAssemblerBlock.RAIL_TYPE, CartAssembleRailType.REGULAR), true);
scene.idle(20);
scene.world.showSection(util.select.fromTo(0, 1, 2, 1, 1, 2), Direction.EAST);
scene.idle(20);
scene.world.toggleRedstonePower(toggle);
scene.effects.indicateRedstone(leverPos);
scene.idle(10);
scene.overlay.showText(70).text("Powered Cart Assemblers mount attached structures to passing Minecarts").attachKeyFrame().pointAt(util.vector.topOf(assemblerPos)).placeNearTarget();
scene.idle(80);
ElementLink<MinecartElement> cart = scene.special.createCart(util.vector.topOf(2, 0, 4), 90, Minecart::new);
scene.world.showSection(util.select.position(assemblerPos.above()), Direction.DOWN);
scene.idle(10);
scene.special.moveCart(cart, util.vector.of(0, 0, -2), 20);
scene.idle(20);
ElementLink<WorldSectionElement> plank = scene.world.makeSectionIndependent(util.select.position(assemblerPos.above()));
ElementLink<WorldSectionElement> anchor = scene.world.showIndependentSectionImmediately(util.select.position(assemblerPos.east()));
scene.world.moveSection(anchor, util.vector.of(-1, 0, 0), 0);
scene.effects.indicateSuccess(assemblerPos);
scene.idle(1);
scene.world.moveSection(anchor, util.vector.of(0, 0, -2), 20);
scene.world.moveSection(plank, util.vector.of(0, 0, -2), 20);
scene.special.moveCart(cart, util.vector.of(0, 0, -2), 20);
scene.idle(20);
scene.world.toggleRedstonePower(toggle);
scene.idle(10);
scene.overlay.showText(70).text("Without a redstone signal, it disassembles passing cart contraptions back into blocks").colored(PonderPalette.RED).attachKeyFrame().pointAt(util.vector.topOf(assemblerPos)).placeNearTarget();
scene.idle(80);
scene.world.rotateSection(anchor, 0, 180, 0, 6);
scene.world.rotateSection(plank, 0, 180, 0, 6);
scene.idle(3);
scene.world.moveSection(anchor, util.vector.of(0, 0, 2), 20);
scene.world.moveSection(plank, util.vector.of(0, 0, 2), 20);
scene.special.moveCart(cart, util.vector.of(0, 0, 2), 20);
scene.idle(21);
scene.world.moveSection(anchor, util.vector.of(0, -2, 0), 0);
scene.special.moveCart(cart, util.vector.of(0, 0, 2), 20);
scene.idle(30);
scene.world.destroyBlock(assemblerPos.above());
scene.idle(5);
ElementLink<WorldSectionElement> contraption = scene.world.showIndependentSection(util.select.fromTo(1, 4, 2, 3, 3, 2), Direction.DOWN);
scene.world.moveSection(contraption, util.vector.of(0, -1, 0), 0);
scene.idle(10);
scene.world.showSectionAndMerge(util.select.position(3, 3, 1), Direction.SOUTH, contraption);
scene.idle(15);
scene.effects.superGlue(util.grid.at(3, 2, 1), Direction.SOUTH, true);
scene.overlay.showText(80).attachKeyFrame().sharedText("movement_anchors").pointAt(util.vector.blockSurface(util.grid.at(1, 3, 2), Direction.NORTH)).placeNearTarget();
scene.idle(80);
scene.world.toggleRedstonePower(toggle);
scene.effects.indicateRedstone(leverPos);
scene.special.moveCart(cart, util.vector.of(0, 0, -2), 20);
scene.idle(20);
scene.world.moveSection(anchor, util.vector.of(0, 2, 0), 0);
scene.idle(1);
scene.world.moveSection(anchor, util.vector.of(0, 0, -2), 20);
scene.world.moveSection(contraption, util.vector.of(0, 0, -2), 20);
scene.special.moveCart(cart, util.vector.of(0, 0, -2), 20);
scene.idle(25);
Vec3 cartCenter = util.vector.centerOf(assemblerPos.north(2));
scene.overlay.showControls(new InputWindowElement(cartCenter, Pointing.LEFT).rightClick().withWrench(), 40);
scene.idle(7);
scene.special.moveCart(cart, util.vector.of(0, -100, 4), 0);
scene.world.moveSection(anchor, util.vector.of(0, -100, 4), 0);
scene.world.moveSection(contraption, util.vector.of(0, -100, 4), 0);
ItemStack asStack = AllItems.MINECART_CONTRAPTION.asStack();
ElementLink<EntityElement> itemEntity = scene.world.createItemEntity(cartCenter, util.vector.of(0, .1, 0), asStack);
scene.idle(40);
scene.overlay.showText(80).attachKeyFrame().text("Using a Wrench on the Minecart will let you carry the Contraption elsewhere").pointAt(cartCenter).placeNearTarget();
scene.idle(80);
scene.world.modifyEntity(itemEntity, Entity::discard);
scene.overlay.showControls(new InputWindowElement(cartCenter.add(0, 0, 4), Pointing.DOWN).rightClick().withItem(asStack), 20);
scene.idle(20);
scene.special.moveCart(cart, util.vector.of(0, 100.5, 0), 0);
scene.world.moveSection(anchor, util.vector.of(0, 100.5, 0), 0);
scene.world.moveSection(contraption, util.vector.of(0, 100.5, 0), 0);
scene.idle(1);
scene.special.moveCart(cart, util.vector.of(0, -.5, 0), 5);
scene.world.moveSection(anchor, util.vector.of(0, -.5, 0), 5);
scene.world.moveSection(contraption, util.vector.of(0, -.5, 0), 5);
}
use of com.simibubi.create.foundation.ponder.Selection in project Create by Creators-of-Create.
the class KineticsScenes method cogwheelsCanBeEncased.
public static void cogwheelsCanBeEncased(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("cogwheel_casing", "Encasing Cogwheels");
scene.configureBasePlate(0, 0, 5);
scene.world.showSection(util.select.layer(0), Direction.UP);
Selection large1 = util.select.position(4, 1, 3);
Selection small1 = util.select.fromTo(3, 1, 2, 3, 2, 2);
Selection small2 = util.select.position(2, 1, 2);
Selection large2 = util.select.fromTo(1, 1, 3, 1, 1, 4);
Selection shaft2 = util.select.position(2, 2, 2);
scene.world.setKineticSpeed(shaft2, 0);
scene.idle(10);
scene.world.showSection(large1, Direction.DOWN);
scene.idle(5);
scene.world.showSection(small1, Direction.DOWN);
scene.world.showSection(small2, Direction.DOWN);
scene.idle(5);
scene.world.showSection(large2, Direction.EAST);
scene.idle(20);
BlockEntry<EncasedCogwheelBlock> andesiteEncased = AllBlocks.ANDESITE_ENCASED_COGWHEEL;
ItemStack andesiteCasingItem = AllBlocks.ANDESITE_CASING.asStack();
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(3, 0, 2), Pointing.UP).rightClick().withItem(andesiteCasingItem), 100);
scene.idle(7);
scene.world.setBlocks(util.select.position(3, 1, 2), andesiteEncased.getDefaultState().setValue(EncasedCogwheelBlock.AXIS, Axis.Y).setValue(EncasedCogwheelBlock.TOP_SHAFT, true), true);
scene.world.setKineticSpeed(util.select.position(3, 1, 2), -32);
scene.idle(15);
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(2, 1, 2), Pointing.DOWN).rightClick().withItem(andesiteCasingItem), 30);
scene.idle(7);
scene.world.setBlocks(small2, andesiteEncased.getDefaultState().setValue(EncasedCogwheelBlock.AXIS, Axis.Y), true);
scene.world.setKineticSpeed(small2, 32);
scene.idle(15);
BlockEntry<EncasedCogwheelBlock> brassEncased = AllBlocks.BRASS_ENCASED_LARGE_COGWHEEL;
ItemStack brassCasingItem = AllBlocks.BRASS_CASING.asStack();
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(1, 0, 3), Pointing.UP).rightClick().withItem(brassCasingItem), 60);
scene.idle(7);
scene.world.setBlocks(util.select.position(1, 1, 3), brassEncased.getDefaultState().setValue(EncasedCogwheelBlock.AXIS, Axis.Y), true);
scene.world.setKineticSpeed(util.select.position(1, 1, 3), -16);
scene.idle(10);
scene.overlay.showText(70).placeNearTarget().attachKeyFrame().text("Brass or Andesite Casing can be used to decorate Cogwheels").pointAt(util.vector.topOf(1, 1, 3));
scene.idle(80);
ElementLink<WorldSectionElement> shaftLink = scene.world.showIndependentSection(shaft2, Direction.DOWN);
scene.idle(15);
scene.overlay.showText(90).placeNearTarget().colored(PonderPalette.RED).attachKeyFrame().text("Components added after encasing will not connect to the shaft outputs").pointAt(util.vector.centerOf(2, 2, 2));
scene.idle(90);
scene.world.moveSection(shaftLink, new Vec3(0, .5f, 0), 10);
scene.idle(10);
scene.addKeyframe();
Vec3 wrenchHere = util.vector.topOf(2, 1, 2).add(.25, 0, -.25);
scene.overlay.showControls(new InputWindowElement(wrenchHere, Pointing.RIGHT).rightClick().withWrench(), 25);
scene.idle(7);
scene.world.cycleBlockProperty(util.grid.at(2, 1, 2), EncasedCogwheelBlock.TOP_SHAFT);
scene.idle(15);
scene.world.moveSection(shaftLink, new Vec3(0, -.5f, 0), 10);
scene.idle(10);
scene.world.setKineticSpeed(shaft2, 32);
scene.effects.rotationDirectionIndicator(util.grid.at(2, 2, 2));
scene.idle(20);
scene.overlay.showText(90).placeNearTarget().colored(PonderPalette.GREEN).text("The Wrench can be used to toggle connections").pointAt(wrenchHere.add(-.5, 0, .5));
scene.idle(40);
scene.overlay.showControls(new InputWindowElement(wrenchHere, Pointing.RIGHT).rightClick().withWrench(), 25);
scene.idle(7);
scene.world.cycleBlockProperty(util.grid.at(2, 1, 2), EncasedCogwheelBlock.TOP_SHAFT);
scene.world.setKineticSpeed(shaft2, 0);
}
use of com.simibubi.create.foundation.ponder.Selection in project Create by Creators-of-Create.
the class KineticsScenes method clutch.
public static void clutch(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("clutch", "Controlling rotational force using a Clutch");
scene.configureBasePlate(0, 0, 5);
scene.world.showSection(util.select.layer(0), Direction.UP);
BlockPos leverPos = util.grid.at(3, 1, 0);
scene.world.showSection(util.select.fromTo(leverPos, leverPos.south()), Direction.UP);
BlockPos gaugePos = util.grid.at(0, 1, 2);
Selection gauge = util.select.position(gaugePos);
scene.world.showSection(gauge, Direction.UP);
scene.world.setKineticSpeed(gauge, 0);
scene.idle(5);
scene.world.showSection(util.select.position(5, 1, 2), Direction.DOWN);
scene.idle(10);
for (int i = 4; i >= 1; i--) {
scene.idle(5);
scene.world.showSection(util.select.position(i, 1, 2), Direction.DOWN);
}
BlockPos clutch = util.grid.at(3, 1, 2);
scene.world.setKineticSpeed(gauge, 32);
scene.effects.indicateSuccess(gaugePos);
scene.idle(10);
scene.overlay.showText(50).text("Clutches will relay rotation in a straight line").placeNearTarget().pointAt(util.vector.topOf(clutch));
scene.idle(60);
scene.world.toggleRedstonePower(util.select.fromTo(leverPos, leverPos.south(2)));
scene.effects.indicateRedstone(leverPos);
scene.world.setKineticSpeed(util.select.fromTo(0, 1, 2, 2, 1, 2), 0);
scene.idle(10);
scene.idle(10);
scene.overlay.showText(50).colored(PonderPalette.RED).text("When powered by Redstone, it breaks the connection").attachKeyFrame().placeNearTarget().pointAt(util.vector.topOf(clutch));
scene.idle(70);
scene.world.toggleRedstonePower(util.select.fromTo(leverPos, leverPos.south(2)));
scene.effects.indicateRedstone(leverPos);
scene.world.setKineticSpeed(util.select.fromTo(0, 1, 2, 2, 1, 2), 32);
scene.effects.indicateSuccess(gaugePos);
}
Aggregations