Repository navigation
Datapacks Hose Spray
Lycoris edited this page Nov 10, 2026
·
1 revision
Folder: data/<namespace>/hose_spray/
Controls what a fluid does when it is sprayed from the hose nozzle, and what color the spray is.
These always work, with no files:
- Water puts out fire and soaks farmland.
- Lava sets blocks and entities on fire.
- Potion fluids apply their effect.
- Create honey slows entities.
Files in this folder add to that, or change it for one fluid.
One binding per file, or many with bindings.
{ "fluid": "minecraft:water", "effect": "douse" }{
"bindings": [
{ "fluid": "minecraft:water", "effect": "douse" },
{ "fluid": "aeronautics:levitite_blend", "mob_effect": "minecraft:levitation", "duration": 100 }
]
}| Key | Meaning |
|---|---|
fluid or fluidTag
|
Pick one. A single fluid id, or a fluid tag. An unknown fluid is skipped and logged. |
effect |
Reuse a built in behavior: douse (puts out fire, soaks farmland) or ignite (sets fire, burns entities). |
mob_effect |
Effect id given to entities hit by the spray. |
duration |
Effect length in ticks. Default 200. |
amplifier |
Effect level, 0 is level one. Default 0. |
damage |
Damage dealt to entities each hit. |
ignite |
Seconds an entity is set on fire. |
match |
List of entity ids or #entity_tags this applies to. Left out means every entity. |
entities |
Per entity rules, see below. |
colors |
List of hex colors like "#33AAFF" for the spray. Up to 4 are used, a shorter list repeats. Works with fluid only, not fluidTag. |
mob_effect, damage and ignite written at the top level are one rule that applies to every entity.
{
"fluid": "minecraft:water",
"effect": "douse",
"entities": {
"rules": [
{ "match": ["minecraft:blaze"], "damage": 3.0 }
],
"blacklist": ["minecraft:villager"]
}
}-
rulesis a list. Each rule hasmatchand one ofmob_effect,damageorignite. -
blacklistis a list of entity ids or#tagsthat ignore this fluid.
The included water_hurts_blazes file works like this: water still puts out fire, and also deals 3 damage to blazes.
{ "fluid": "minecraft:lava", "colors": ["#FF6A00", "#FFB347"] }Colors are sent to every player on join and after /reload.
-
water_hurts_blazes.json: water hurts blazes. -
levitite.json: Aeronautics levitite blend gives Levitation for 100 ticks.
Start here
Reading the train
- Identity
- Motion
- State
- Station
- Signals
- Track ahead
- Orientation
- World position
- Carriages
- Consist wide cargo
Driving the train
Schedules
Doors and body
Links
The whole railway
Reacting to changes
Programs and reference
Start here
Controlling the plate
Automatic modes
Reading the turntable
Reference