use of com.simibubi.create.foundation.ponder.element.ParrotElement.FlappyPose in project Create by Creators-of-Create.
the class FanScenes method direction.
public static void direction(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("fan_direction", "Air flow of Encased Fans");
scene.configureBasePlate(0, 1, 5);
scene.world.showSection(util.select.layer(0), Direction.UP);
scene.idle(5);
scene.world.showSection(util.select.fromTo(3, 1, 0, 3, 1, 5).add(util.select.position(3, 2, 4)), Direction.DOWN);
scene.world.showSection(util.select.fromTo(2, 1, 5, 1, 1, 5), Direction.DOWN);
scene.idle(10);
BlockPos fanPos = util.grid.at(1, 1, 4);
scene.world.showSection(util.select.position(fanPos), Direction.SOUTH);
scene.idle(40);
scene.effects.rotationDirectionIndicator(fanPos.south());
ElementLink<ParrotElement> flappyBirb = scene.special.createBirb(util.vector.topOf(1, 0, 3), FlappyPose::new);
scene.idle(2);
scene.special.rotateParrot(flappyBirb, 0, 235, 0, 30);
scene.special.moveParrot(flappyBirb, util.vector.of(0, 0, -2.5), 30);
scene.idle(20);
scene.overlay.showText(80).text("Encased Fans use Rotational Force to create an Air Current").attachKeyFrame().placeNearTarget().pointAt(util.vector.topOf(fanPos));
scene.idle(90);
BlockPos leverPos = util.grid.at(3, 2, 4);
Selection reverse = util.select.fromTo(3, 1, 5, 1, 1, 4);
scene.world.toggleRedstonePower(util.select.fromTo(leverPos, leverPos.below()));
scene.effects.indicateRedstone(leverPos);
scene.addKeyframe();
scene.world.modifyKineticSpeed(reverse, f -> -f);
scene.effects.rotationDirectionIndicator(fanPos.south());
scene.special.rotateParrot(flappyBirb, 0, 215 * 2, 0, 30);
scene.special.moveParrot(flappyBirb, util.vector.of(0, 0, 2.5), 30);
scene.idle(31);
scene.overlay.showText(60).text("Strength and Direction of Flow depends on the Rotational Input").placeNearTarget().pointAt(util.vector.topOf(fanPos));
scene.markAsFinished();
scene.idle(70);
scene.world.toggleRedstonePower(util.select.fromTo(leverPos, leverPos.below()));
scene.effects.indicateRedstone(leverPos);
scene.world.modifyKineticSpeed(reverse, f -> -f);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> 4 * f);
scene.effects.rotationSpeedIndicator(fanPos.south());
scene.special.rotateParrot(flappyBirb, 0, 245 * 4, 0, 30);
scene.special.moveParrot(flappyBirb, util.vector.of(0, 0, -20), 30);
}
use of com.simibubi.create.foundation.ponder.element.ParrotElement.FlappyPose in project Create by Creators-of-Create.
the class MovementActorScenes method plough.
public static void plough(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("mechanical_plough", "Using Mechanical Ploughs on Contraptions");
scene.configureBasePlate(0, 0, 6);
scene.scaleSceneView(0.9f);
Selection garbage = util.select.fromTo(2, 1, 3, 1, 1, 2);
Selection kinetics = util.select.fromTo(5, 1, 6, 5, 1, 2);
Selection dynamic = util.select.fromTo(4, 0, 6, 5, 1, 6);
scene.showBasePlate();
ElementLink<WorldSectionElement> cogs = scene.world.showIndependentSection(util.select.fromTo(4, 0, 6, 5, 1, 6), Direction.UP);
scene.idle(5);
scene.world.showSection(kinetics.substract(dynamic), Direction.DOWN);
ElementLink<WorldSectionElement> pistonHead = scene.world.showIndependentSection(util.select.fromTo(5, 1, 1, 7, 1, 1), Direction.DOWN);
scene.world.moveSection(pistonHead, util.vector.of(0, 0, 1), 0);
scene.idle(5);
ElementLink<WorldSectionElement> contraption = scene.world.showIndependentSection(util.select.fromTo(4, 1, 3, 4, 1, 2), Direction.DOWN);
scene.idle(10);
scene.world.showSectionAndMerge(util.select.position(3, 1, 3), Direction.EAST, contraption);
scene.idle(5);
scene.world.showSectionAndMerge(util.select.position(3, 1, 2), Direction.EAST, contraption);
scene.idle(20);
scene.overlay.showText(60).attachKeyFrame().placeNearTarget().pointAt(util.vector.blockSurface(util.grid.at(3, 1, 3), Direction.EAST)).text("Whenever Ploughs are moved as part of an animated Contraption...");
scene.idle(50);
scene.world.showSection(garbage, Direction.EAST);
scene.idle(20);
scene.world.setKineticSpeed(util.select.position(4, 0, 6), -8);
scene.world.setKineticSpeed(kinetics, 16);
scene.world.moveSection(pistonHead, util.vector.of(-2, 0, 0), 60);
scene.world.moveSection(contraption, util.vector.of(-2, 0, 0), 60);
scene.idle(15);
Vec3 m = util.vector.of(-0.1, .2, 0);
scene.world.destroyBlock(util.grid.at(2, 1, 3));
scene.world.createItemEntity(util.vector.centerOf(2, 1, 3), m, new ItemStack(Items.LEVER));
scene.world.destroyBlock(util.grid.at(2, 1, 2));
scene.world.createItemEntity(util.vector.centerOf(2, 1, 2), m, new ItemStack(Items.TORCH));
scene.idle(30);
scene.world.destroyBlock(util.grid.at(1, 1, 3));
scene.world.createItemEntity(util.vector.centerOf(1, 1, 3), m, new ItemStack(Items.RAIL));
scene.world.destroyBlock(util.grid.at(1, 1, 2));
scene.world.createItemEntity(util.vector.centerOf(1, 1, 2), m, new ItemStack(Items.REDSTONE));
scene.overlay.showText(60).placeNearTarget().pointAt(util.vector.blockSurface(util.grid.at(1, 1, 3), Direction.EAST)).text("...they will break blocks without a solid collision hitbox");
scene.idle(50);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -f);
scene.world.moveSection(pistonHead, util.vector.of(2, 0, 0), 40);
scene.world.moveSection(contraption, util.vector.of(2, 0, 0), 40);
scene.world.hideSection(garbage, Direction.UP);
scene.idle(40);
scene.world.setBlocks(garbage, Blocks.SNOW.defaultBlockState(), false);
scene.world.modifyEntities(ItemEntity.class, Entity::discard);
ElementLink<WorldSectionElement> chest = scene.world.showIndependentSection(util.select.position(4, 2, 2), Direction.DOWN);
scene.overlay.showText(60).attachKeyFrame().placeNearTarget().pointAt(util.vector.blockSurface(util.grid.at(4, 2, 2), Direction.WEST)).sharedText("storage_on_contraption");
scene.idle(15);
scene.effects.superGlue(util.grid.at(4, 2, 2), Direction.DOWN, true);
scene.idle(45);
scene.world.showSection(garbage, Direction.EAST);
scene.idle(20);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -f);
scene.world.moveSection(pistonHead, util.vector.of(-2, 0, 0), 60);
scene.world.moveSection(contraption, util.vector.of(-2, 0, 0), 60);
scene.world.moveSection(chest, util.vector.of(-2, 0, 0), 60);
scene.idle(15);
scene.world.destroyBlock(util.grid.at(2, 1, 3));
scene.world.destroyBlock(util.grid.at(2, 1, 2));
scene.idle(30);
scene.world.destroyBlock(util.grid.at(1, 1, 3));
scene.world.destroyBlock(util.grid.at(1, 1, 2));
scene.idle(15);
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(2, 2, 2), Pointing.DOWN).withItem(new ItemStack(Items.SNOWBALL)), 40);
scene.idle(40);
scene.world.hideIndependentSection(chest, Direction.UP);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -f);
scene.world.moveSection(pistonHead, util.vector.of(2, 0, 0), 40);
scene.world.moveSection(contraption, util.vector.of(2, 0, 0), 40);
scene.idle(40);
Selection dirt = util.select.fromTo(2, 0, 3, 1, 0, 2);
scene.world.hideSection(dirt, Direction.DOWN);
scene.idle(15);
scene.world.setBlocks(dirt, Blocks.GRASS_BLOCK.defaultBlockState(), false);
scene.world.showSection(dirt, Direction.UP);
scene.overlay.showText(60).placeNearTarget().attachKeyFrame().pointAt(util.vector.blockSurface(util.grid.at(3, 1, 3), Direction.EAST)).text("Additionally, ploughs can create farmland");
scene.idle(30);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -f);
scene.world.moveSection(pistonHead, util.vector.of(-2, 0, 0), 60);
scene.world.moveSection(contraption, util.vector.of(-2, 0, 0), 60);
scene.world.moveSection(chest, util.vector.of(-2, 0, 0), 60);
scene.idle(15);
scene.world.setBlocks(util.select.fromTo(2, 0, 2, 2, 0, 3), Blocks.FARMLAND.defaultBlockState(), true);
scene.idle(30);
scene.world.setBlocks(util.select.fromTo(1, 0, 2, 1, 0, 3), Blocks.FARMLAND.defaultBlockState(), true);
scene.idle(20);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -f);
scene.world.moveSection(pistonHead, util.vector.of(2, 0, 0), 40);
scene.world.moveSection(contraption, util.vector.of(2, 0, 0), 40);
scene.idle(50);
scene.world.setKineticSpeed(util.select.everywhere(), 0);
scene.world.hideSection(kinetics.substract(dynamic), Direction.EAST);
scene.world.hideSection(dirt, Direction.DOWN);
scene.world.hideIndependentSection(pistonHead, Direction.EAST);
scene.world.moveSection(cogs, util.vector.of(-1, 0, 0), 15);
scene.idle(15);
scene.world.restoreBlocks(dirt);
scene.world.showSection(dirt, Direction.UP);
scene.world.showSection(util.select.fromTo(4, 1, 6, 4, 3, 4), Direction.NORTH);
scene.idle(15);
scene.world.showSectionAndMerge(util.select.fromTo(4, 3, 3, 4, 2, 3), Direction.DOWN, contraption);
scene.idle(15);
BlockPos bearingPos = util.grid.at(4, 3, 4);
scene.addKeyframe();
scene.world.setKineticSpeed(util.select.position(4, 0, 6), 8);
scene.world.setKineticSpeed(util.select.position(5, 1, 6), -16);
scene.world.setKineticSpeed(util.select.position(4, 3, 5), -16);
scene.world.setKineticSpeed(util.select.position(4, 1, 5), -16);
scene.world.setKineticSpeed(util.select.position(4, 2, 5), 16);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -2 * f);
scene.world.configureCenterOfRotation(contraption, util.vector.centerOf(bearingPos));
scene.world.rotateSection(contraption, 0, 0, 90, 20);
scene.world.rotateBearing(bearingPos, 90, 20);
scene.idle(10);
ElementLink<ParrotElement> birb = scene.special.createBirb(util.vector.topOf(3, 0, 2).add(0, 0, 0.5), FlappyPose::new);
scene.idle(11);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -2 * f);
scene.world.rotateSection(contraption, 0, 0, -135, 10);
scene.world.rotateBearing(bearingPos, -135, 10);
scene.idle(7);
scene.special.moveParrot(birb, util.vector.of(-20, 15, 0), 20);
scene.special.rotateParrot(birb, 0, 360, 0, 20);
scene.idle(3);
scene.world.setKineticSpeed(util.select.everywhere(), 0);
scene.idle(20);
scene.overlay.showText(60).placeNearTarget().pointAt(util.vector.centerOf(util.grid.at(1, 3, 2))).text("...they can also launch entities without hurting them");
scene.idle(30);
}
Aggregations