jsp
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// 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()
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user