use of com.simibubi.create.foundation.ponder.element.ParrotElement.DancePose in project Create by Creators-of-Create.
the class DebugScenes method birbScene.
public static void birbScene(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("debug_birbs", "Birbs");
scene.showBasePlate();
scene.idle(10);
scene.world.showSection(util.select.layersFrom(1), Direction.DOWN);
scene.idle(10);
BlockPos pos = new BlockPos(1, 2, 3);
scene.special.birbOnSpinnyShaft(pos);
scene.overlay.showText(100).colored(PonderPalette.GREEN).text("More birbs = More interesting").pointAt(util.vector.topOf(pos));
scene.idle(10);
scene.special.createBirb(util.vector.topOf(0, 1, 2), DancePose::new);
scene.idle(10);
scene.special.createBirb(util.vector.centerOf(3, 1, 3).add(0, 0.25f, 0), FacePointOfInterestPose::new);
scene.idle(20);
BlockPos poi1 = util.grid.at(4, 1, 0);
BlockPos poi2 = util.grid.at(0, 1, 4);
scene.world.setBlock(poi1, Blocks.GOLD_BLOCK.defaultBlockState(), true);
scene.special.movePointOfInterest(poi1);
scene.idle(20);
scene.world.setBlock(poi2, Blocks.GOLD_BLOCK.defaultBlockState(), true);
scene.special.movePointOfInterest(poi2);
scene.overlay.showText(20).text("Point of Interest").pointAt(util.vector.centerOf(poi2));
scene.idle(20);
scene.world.destroyBlock(poi1);
scene.special.movePointOfInterest(poi1);
scene.idle(20);
scene.world.destroyBlock(poi2);
scene.special.movePointOfInterest(poi2);
}
Aggregations