Files
2026-10-18 00:10:27 +02:00

26 lines
1006 B
JavaScript

// priority: 1000
StartupEvents.registry("fluid", (event) => {
const fluids = [
{ name: "ftbevolution:dna_mixture", displayName: "DNA Mixture", block: true },
{ name: "ftbevolution:starlight", displayName: "Liquid Starlight", block: true },
{ name: "ftbevolution:chaotic_matter", displayName: "Chaotic Matter", block: true }
];
fluids.forEach((fluid) => {
if (fluid.block) {
event.create(fluid.name)
.displayName(fluid.displayName)
.stillTexture(`ftbevolution:block/fluid/${fluid.name.split(":")[1]}_still`)
.flowingTexture(`ftbevolution:block/fluid/${fluid.name.split(":")[1]}_flowing`)
} else {
event.create(fluid.name)
.displayName(fluid.displayName)
.stillTexture(`ftbevolution:block/fluid/${fluid.name.split(":")[1]}_still`)
.flowingTexture(`ftbevolution:block/fluid/${fluid.name.split(":")[1]}_flowing`)
.noBlock()
}
});
});