-
Notifications
You must be signed in to change notification settings - Fork 1
Home
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
-
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 fortype
: "block". The block generated from the mixing -
power
: required fortype
: "explosion". The power of the explosion generated from the mixing -
function
: required fortype
: "function". The function to execute from the mixing
-
Here's an example datapack: ExampleCustomMixin.zip
Here's the jsons found in the ExampleCustomMixin.zip
:
{
"flowing": "#minecraft:lava",
"blocks_nearby": [
"minecraft:diamond_block",
"minecraft:beacon",
"#minecraft:water"
],
"result": {
"type": "block",
"block": "minecraft:diamond_ore"
}
}
{
"flowing": "#minecraft:lava",
"blocks_nearby": [
"minecraft:obsidian",
"#minecraft:water"
],
"result": {
"type": "explosion",
"power": 2
}
}
{
"flowing": "#minecraft:lava",
"blocks_nearby": [
"minecraft:wither_skeleton_skull",
"minecraft:creeper_head",
"minecraft:soul_sand"
],
"result": {
"type": "function",
"function": "examplefluidmixin:summon_wither"
}
}
fill ~-2 ~-2 ~-2 ~2 ~2 ~2 air
particle explosion_emitter ~ ~ ~
summon lightning_bolt ~ ~ ~
summon wither ~ ~ ~ {Invul:1}