Ponder.registry((event) => { event .create(["supplementaries:faucet"]) .tag("kubejs:machine_and_multiblock") .scene( "kubejs:faucet", "水龙头的使用", "kubejs:faucet", (scene, utils) => { scene.scaleSceneView(0.75); scene.configureBasePlate(0, 0, 9); scene.showStructure(0); scene.world.showSection([0, 1, 0,9,6,9], Direction.down) scene.idle(40); scene.addKeyframe(); scene.text(40, "水龙头是一种特殊的物流物品"); scene.idle(60); scene.text(40, "它可以将它所附着的方块的流体传输至它下方的方块"); scene.idle(60); scene.text(120, "它能传输容器中的流体",[5,2,1]); scene.overlay.showOutline("green", { "glue": true }, [5,2,1,5,2,1], 120); scene.idle(40); scene.text(80, "含水方块中的水",[5,2,4]); scene.overlay.showOutline("green", { "glue": true }, [5,2,4,5,2,4], 80); scene.idle(40); scene.text(40, "甚至是世界中的流体",[5,4,7]); scene.overlay.showOutline("green", { "glue": true }, [5,4,7,5,4,7], 40); scene.idle(30); scene.addKeyframe(); scene.idle(30); scene.text(60, "你可以右键它来开启/关闭输出"); scene.showControls(20, [4.5, 3, 1], "down") .rightClick() scene.world.modifyBlock([4, 2, 1], state => state.with("enabled", "true"), false) scene.idle(10); scene.world.modifyTileNBT([4, 1, 1], (nbt) => { nbt.InputTanks = [{Level:{Speed:0.25,Target:0.25,Value:0.0},TankContent:{Amount:250,FluidName:"minecraft:lava"}},{Level:{Speed:0.25,Target:0.0,Value:0.0},TankContent:{Amount:0,FluidName:"minecraft:empty"}}] }) scene.idle(10); scene.world.modifyTileNBT([4, 1, 1], (nbt) => { nbt.InputTanks = [{Level:{Speed:0.25,Target:0.5,Value:0.25},TankContent:{Amount:500,FluidName:"minecraft:lava"}},{Level:{Speed:0.25,Target:0.0,Value:0.0},TankContent:{Amount:0,FluidName:"minecraft:empty"}}] }) scene.showControls(20, [4.5, 3, 4], "down") .rightClick() scene.world.modifyBlock([4, 2, 4], state => state.with("enabled", "true"), false) scene.idle(10); scene.world.modifyTileNBT([4, 1, 1], (nbt) => { nbt.InputTanks = [{Level:{Speed:0.25,Target:0.75,Value:0.5},TankContent:{Amount:750,FluidName:"minecraft:lava"}},{Level:{Speed:0.25,Target:0.0,Value:0.0},TankContent:{Amount:0,FluidName:"minecraft:empty"}}] }) scene.world.setBlock([4, 1, 4], "water_cauldron", false); scene.world.modifyBlock([4, 1, 4], state => state.with("level", "3"), false) scene.idle(10); scene.world.modifyTileNBT([4, 1, 1], (nbt) => { nbt.InputTanks = [{Level:{Speed:0.25,Target:1.0,Value:0.75},TankContent:{Amount:1000,FluidName:"minecraft:lava"}},{Level:{Speed:0.25,Target:0.0,Value:0.0},TankContent:{Amount:0,FluidName:"minecraft:empty"}}] }) scene.showControls(20, [4.5, 5, 7], "down") .rightClick() scene.world.modifyBlock([4, 4, 7], state => state.with("enabled", "true"), false) scene.world.setBlock([5, 4, 7], "air", true); scene.world.modifyTileNBT([4, 3, 7], (nbt) => { nbt.Tanks = [{Level:{Speed:0.25,Target:1.0,Value:1.0},TankContent:{Amount:1000,FluidName:"createaddition:seed_oil"}}] }) scene.idle(20); scene.addKeyframe(); scene.idle(20); scene.text(120, "特别的,你还可以用它来运输容器中的物品!不过这种方式的运输效率并不高"); scene.overlay.showOutline("green", { "glue": true }, [1,1,3,1,2,5], 60); } ); });