Foreword
FTB Dripper is a very good FORGE magic modification module. This module adds a square. By dripping the water to the square below it, it slowly converts it into other blocks or items.And this tutorial translates the official Wiki and handles it into MC Encyclopedia, and also adds more explanations to the code during the translation.
write
Kubejs 5
Kubejs 5 formula example:
Onevent ('recipes', event => {Event.recipes.ftbdripperdrip ({{
InputBlock: 'Minecraft: Fire',
InputITEM: 'Minecraft: Flint_AnD_STEEL',
OutputBlock: 'Minecraft: Diamond_block',
OutputITEM: 'Minecraft: Diamond',
CHANCE: 1.0,
Fluid: 'Minecraft: LAVA'
})
Event.recipes.ftbdripperdrip ({{
InputBlock: 'Minecraft: Cobblestone',
OutputBlock: 'Minecraft: Iron_block',
})
Event.recipes.ftbdripperdrip ({{
InputBlock: 'Minecraft: Red_sand',
OutputBlock: 'Minecraft: Redstone_block',
})
Event.recipes.ftbdripperdrip ({{
InputBlock: 'Minecraft: Dried_kelp_block',
OutputBlock: 'Minecraft: Grass_block',
})
})
Json
JSON formula example:
{"type": "ftbdripper: drip","InputBlock": "Minecraft: Fire",
"InputITEM": "Minecraft: Flint_AnD_STEEL",, "
"OutputBlock": "Minecraft: Diamond_block",,
"OutputITEM": "Minecraft: Diamond",
"CHANCE": 1.0,
"Fluid": "Minecraft: LAVA"
}
InputBlock, OutputBlock -must be filled, inputBlock is an injection block. After transformation, it can be turned into OutputBlock (output blocks), which can be filled in the registered name.
InputITEM, OutputItem -Optional, for support for Jei item managers.
CHANCE -optional, the value range is 0.0 -1.0, and the default is 1.0.The probability of changing can be determined.
FLUID -Optional, which decides to drip the liquid in the injected block, the default minecraft: water.