use of com.simibubi.create.content.contraptions.components.mixer.MechanicalMixerTileEntity in project Create by Creators-of-Create.
the class BasinTileEntity method lazyTick.
@Override
public void lazyTick() {
super.lazyTick();
updateSpoutput();
if (!level.isClientSide)
return;
BlockEntity tileEntity = level.getBlockEntity(worldPosition.above(2));
if (!(tileEntity instanceof MechanicalMixerTileEntity)) {
setAreFluidsMoving(false);
return;
}
MechanicalMixerTileEntity mixer = (MechanicalMixerTileEntity) tileEntity;
setAreFluidsMoving(mixer.running && mixer.runningTicks <= 20);
}
use of com.simibubi.create.content.contraptions.components.mixer.MechanicalMixerTileEntity in project Create by Creators-of-Create.
the class ProcessingScenes method mixing.
public static void mixing(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("mechanical_mixer", "Processing Items with the Mechanical Mixer");
scene.configureBasePlate(0, 0, 5);
scene.world.setBlock(util.grid.at(1, 1, 2), AllBlocks.ANDESITE_CASING.getDefaultState(), false);
scene.world.showSection(util.select.layer(0), Direction.UP);
scene.idle(5);
scene.world.showSection(util.select.fromTo(1, 4, 3, 1, 1, 5), Direction.DOWN);
scene.idle(5);
scene.world.showSection(util.select.position(1, 1, 2), Direction.DOWN);
scene.idle(5);
scene.world.showSection(util.select.position(1, 2, 2), Direction.DOWN);
scene.idle(5);
scene.world.showSection(util.select.position(1, 4, 2), Direction.SOUTH);
scene.idle(5);
scene.world.showSection(util.select.fromTo(3, 1, 1, 1, 1, 1), Direction.SOUTH);
scene.world.showSection(util.select.fromTo(3, 1, 5, 3, 1, 2), Direction.SOUTH);
scene.idle(20);
BlockPos basin = util.grid.at(1, 2, 2);
BlockPos pressPos = util.grid.at(1, 4, 2);
Vec3 basinSide = util.vector.blockSurface(basin, Direction.WEST);
ItemStack blue = new ItemStack(Items.BLUE_DYE);
ItemStack red = new ItemStack(Items.RED_DYE);
ItemStack purple = new ItemStack(Items.PURPLE_DYE);
scene.overlay.showText(60).pointAt(basinSide).placeNearTarget().attachKeyFrame().text("With a Mixer and Basin, some Crafting Recipes can be automated");
scene.idle(40);
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(basin), Pointing.LEFT).withItem(blue), 30);
scene.overlay.showControls(new InputWindowElement(util.vector.topOf(basin), Pointing.RIGHT).withItem(red), 30);
scene.idle(30);
Class<MechanicalMixerTileEntity> type = MechanicalMixerTileEntity.class;
scene.world.modifyTileEntity(pressPos, type, pte -> pte.startProcessingBasin());
scene.world.createItemOnBeltLike(basin, Direction.UP, red);
scene.world.createItemOnBeltLike(basin, Direction.UP, blue);
scene.idle(80);
scene.world.modifyTileNBT(util.select.position(basin), BasinTileEntity.class, nbt -> {
nbt.put("VisualizedItems", NBTHelper.writeCompoundList(ImmutableList.of(IntAttached.with(1, purple)), ia -> ia.getValue().serializeNBT()));
});
scene.idle(4);
scene.world.createItemOnBelt(util.grid.at(1, 1, 1), Direction.UP, purple);
scene.idle(30);
scene.overlay.showText(80).pointAt(basinSide).placeNearTarget().attachKeyFrame().text("Available recipes include any Shapeless Crafting Recipe, plus a couple extra ones");
scene.idle(80);
scene.rotateCameraY(-30);
scene.idle(10);
scene.world.setBlock(util.grid.at(1, 1, 2), AllBlocks.BLAZE_BURNER.getDefaultState().setValue(BlazeBurnerBlock.HEAT_LEVEL, HeatLevel.KINDLED), true);
scene.idle(10);
scene.overlay.showText(80).pointAt(basinSide.subtract(0, 1, 0)).placeNearTarget().text("Some of those recipes may require the heat of a Blaze Burner");
scene.idle(40);
scene.rotateCameraY(30);
scene.idle(60);
Vec3 filterPos = util.vector.of(1, 2.75f, 2.5f);
scene.overlay.showFilterSlotInput(filterPos, 100);
scene.overlay.showText(120).pointAt(filterPos).placeNearTarget().attachKeyFrame().text("The filter slot can be used in case two recipes are conflicting.");
scene.idle(60);
}
Aggregations