use of com.simibubi.create.foundation.ponder.element.ParrotElement.FaceCursorPose in project Create by Creators-of-Create.
the class BeltScenes method transport.
public static void transport(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("belt_transport", "Using Mechanical Belts for Logistics");
scene.configureBasePlate(0, 0, 5);
scene.setSceneOffsetY(-1);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -.6f * f);
scene.showBasePlate();
scene.idle(5);
scene.world.showSection(util.select.fromTo(1, 1, 3, 2, 1, 5), Direction.DOWN);
scene.idle(20);
scene.world.showSection(util.select.fromTo(2, 1, 2, 4, 3, 2), Direction.SOUTH);
scene.idle(5);
scene.world.showSection(util.select.fromTo(1, 1, 2, 0, 1, 2), Direction.SOUTH);
scene.idle(10);
scene.special.movePointOfInterest(util.grid.at(2, 2, 0));
ItemStack stack = new ItemStack(Items.COPPER_BLOCK);
ElementLink<EntityElement> item = scene.world.createItemEntity(util.vector.centerOf(0, 4, 2), util.vector.of(0, 0, 0), stack);
scene.idle(13);
scene.world.modifyEntity(item, Entity::discard);
BlockPos beltEnd = util.grid.at(0, 1, 2);
scene.world.createItemOnBelt(beltEnd, Direction.DOWN, stack);
scene.idle(20);
ElementLink<ParrotElement> parrot = scene.special.createBirb(util.vector.topOf(0, 1, 2).add(0, -3 / 16f, 0), FacePointOfInterestPose::new);
scene.special.moveParrot(parrot, util.vector.of(1.78, 0, 0), 40);
scene.special.movePointOfInterest(util.grid.at(1, 1, 3));
scene.overlay.showText(60).placeNearTarget().pointAt(util.vector.topOf(beltEnd)).text("Moving belts will transport Items and other Entities");
scene.idle(20);
item = scene.world.createItemEntity(util.vector.centerOf(0, 4, 2), util.vector.of(0, 0, 0), stack);
scene.special.movePointOfInterest(util.grid.at(0, 3, 2));
scene.idle(10);
scene.special.movePointOfInterest(beltEnd);
scene.idle(3);
scene.world.modifyEntity(item, Entity::discard);
scene.world.createItemOnBelt(beltEnd, Direction.DOWN, stack);
scene.idle(8);
scene.special.movePointOfInterest(util.grid.at(3, 2, 1));
scene.special.moveParrot(parrot, util.vector.of(2.1, 2.1, 0), 60);
scene.idle(20);
scene.special.movePointOfInterest(util.grid.at(5, 5, 2));
scene.idle(30);
scene.special.movePointOfInterest(util.grid.at(2, 1, 5));
scene.idle(10);
scene.special.moveParrot(parrot, util.vector.of(.23, 0, 0), 5);
scene.idle(5);
scene.world.setKineticSpeed(util.select.everywhere(), 0f);
scene.idle(10);
scene.world.modifyEntities(ItemEntity.class, Entity::discard);
scene.special.movePointOfInterest(util.grid.at(2, 5, 4));
Vec3 topOf = util.vector.topOf(util.grid.at(3, 2, 2)).add(-0.1, 0.3, 0);
scene.overlay.showControls(new InputWindowElement(topOf, Pointing.DOWN).rightClick(), 60);
scene.idle(10);
scene.overlay.showText(60).placeNearTarget().pointAt(topOf.subtract(0, 0.1, 0)).attachKeyFrame().text("Right-Click with an empty hand to take items off a belt");
scene.idle(20);
scene.world.removeItemsFromBelt(util.grid.at(3, 2, 2));
scene.effects.indicateSuccess(util.grid.at(3, 2, 2));
scene.idle(20);
scene.special.changeBirbPose(parrot, FaceCursorPose::new);
}
use of com.simibubi.create.foundation.ponder.element.ParrotElement.FaceCursorPose in project Create by Creators-of-Create.
the class PistonScenes method poles.
public static void poles(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("piston_pole", "Piston Extension Poles");
scene.configureBasePlate(0, 0, 5);
scene.world.showSection(util.select.layer(0), Direction.UP);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -f);
Selection kinetics = util.select.fromTo(3, 1, 3, 3, 1, 2);
BlockPos piston = util.grid.at(3, 1, 2);
scene.idle(5);
scene.world.showSection(util.select.fromTo(3, 1, 3, 3, 2, 5), Direction.DOWN);
scene.idle(10);
scene.world.showSection(util.select.position(piston), Direction.DOWN);
ElementLink<WorldSectionElement> contraption = scene.world.showIndependentSection(util.select.position(3, 1, 1), Direction.DOWN);
scene.world.moveSection(contraption, util.vector.of(0, 0, 1), 0);
scene.idle(20);
BlockPos leverPos = util.grid.at(3, 2, 4);
scene.effects.indicateRedstone(leverPos);
scene.world.toggleRedstonePower(util.select.fromTo(leverPos, leverPos.below()));
scene.world.setKineticSpeed(kinetics, 16);
scene.idle(10);
scene.overlay.showSelectionWithText(util.select.position(piston), 50).colored(PonderPalette.RED).placeNearTarget().attachKeyFrame().text("Without attached Poles, a Mechanical Piston cannot move");
scene.idle(60);
scene.effects.indicateRedstone(leverPos);
scene.world.toggleRedstonePower(util.select.fromTo(leverPos, leverPos.below()));
scene.world.setKineticSpeed(kinetics, 0);
scene.idle(5);
scene.world.showSectionAndMerge(util.select.position(piston.north().east()), Direction.DOWN, contraption);
scene.idle(5);
scene.world.showSectionAndMerge(util.select.position(piston.north().east(2)), Direction.DOWN, contraption);
scene.idle(10);
scene.overlay.showOutline(PonderPalette.RED, new Object(), util.select.fromTo(piston.east(), piston.east(2)), 100);
scene.overlay.showSelectionWithText(util.select.fromTo(piston.west(), piston.west(2)), 100).text("The Length of pole added at its back determines the Extension Range").attachKeyFrame().placeNearTarget().colored(PonderPalette.GREEN);
scene.idle(110);
scene.world.showSectionAndMerge(util.select.position(piston.north().west()), Direction.EAST, contraption);
scene.idle(10);
ElementLink<ParrotElement> birb = scene.special.createBirb(util.vector.topOf(piston.west()), FaceCursorPose::new);
scene.idle(15);
scene.effects.indicateRedstone(leverPos);
scene.world.toggleRedstonePower(util.select.fromTo(leverPos, leverPos.below()));
scene.world.setKineticSpeed(kinetics, 16);
scene.world.moveSection(contraption, util.vector.of(-2, 0, 0), 40);
scene.special.moveParrot(birb, util.vector.of(-2, 0, 0), 40);
}
Aggregations