Skip to content
Alberto Del Villano edited this page May 18, 2022 · 17 revisions

Welcome to the Custom Fluid Mixin wiki! Custom Fluid Mixin is a mod that let you change or add via datapacks what a flowing fluid should generate when touching other fluids/blocks

Properties

  • flowing: the block or block tag that's flowing
  • blocks_nearby: list of blocks or block tags nearby required for the result to apply
  • result:
    • type: result type, can be "block", "explosion", "function"
    • block: required for type: "block". The block generated from the mixing
    • power: required for type: "explosion". The power of the explosion generated from the mixing
    • function: required for type: "function". The function to execute from the mixing

Example

Here's an example datapack: ExampleCustomMixin.zip

Here's the jsons found in the ExampleCustomMixin.zip:

block.json

{
    "flowing": "#minecraft:lava",
    "blocks_nearby": [
        "minecraft:diamond_block",
        "minecraft:beacon",
        "#minecraft:water"
    ],
    "result": {
        "type": "block",
        "block": "minecraft:diamond_ore"
    }
}

explosion.json

{
    "flowing": "#minecraft:lava",
    "blocks_nearby": [
        "minecraft:obsidian",
        "#minecraft:water"
    ],
    "result": {
        "type": "explosion",
        "power": 2
    }
}

function.json

{
    "flowing": "#minecraft:lava",
    "blocks_nearby": [
        "minecraft:wither_skeleton_skull",
        "minecraft:creeper_head",
        "minecraft:soul_sand"
    ],
    "result": {
        "type": "function",
        "function": "examplefluidmixin:summon_wither"
    }
}

summon_wither.mcfunction

fill ~-2 ~-2 ~-2 ~2 ~2 ~2 air
particle explosion_emitter ~ ~ ~
summon lightning_bolt ~ ~ ~
summon wither ~ ~ ~ {Invul:1}
Clone this wiki locally