借助数据包,本模组允许你在流体(例如岩浆、水)流动时产生一个方块(例如岩浆流动遇水时可以不再是产生黑曜石,能够自定义任何方块)、导致一阵爆炸或执行一个 .mcfunction 文件。
方块文件示例:
{
"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
}
}
.mcfunction 文件示例:
{
"flowing": "#minecraft:lava",
"blocks_nearby": [
"minecraft:wither_skeleton_skull",
"minecraft:creeper_head",
"minecraft:soul_sand"
],
"result": {
"type": "function",
"function": "test:test_function"
}
}
mcfunction:
fill ~-2 ~-2 ~-2 ~2 ~2 ~2 air summon lightning_bolt ~ ~ ~ summon wither ~ ~ ~ {Invul:1}