I wanted to make an add-on that uses custom fluids
Here's how the component might work:
"components": {
"minecraft:fluid": {
"flow_range": 8, //How many blocks the fluid can spread
"flowing_rate": 1, //How fast the fluid can spread (in seconds)
},
"minecraft:entity_collision": { //This is already added, it is here to make it so that you cant collide with the fluid
"size": [0,0,0],
"origin": [0,0,0]
},
"minecraft:on_collide": { //When you go in the fluid, an event will be triggered.
"event": "fluid_on_collide",
"target": "other"
}
}Please sign in to leave a comment.
0 Comments