-
Notifications
You must be signed in to change notification settings - Fork 9
1.18.1
Gloridifice edited this page Jan 18, 2022
·
2 revisions
You can add waterlevel and thirst effect to items/fluids with datapack.
This kind of recipe is used to add water level to itmes/fluids. It's recipe type is "watersource:water_level", and it has six keys.
- group: (String)
Group of the recipe, same as Vanilla - ingredient: (Json object)
A "tag" or an "item", same as Vanilla - fluid: (String)
Registry name of a fluid - nbt: (Json array)
Same as Vanilla - mob_effects: (Json array)
Every json object has three values: name(String), duration(int), amplifier(int) - water_level: (int)
- water_saturation_level: (int)
These keys is optional.
Game will match a item stack with ingredient, fluid and nbt key. Please write at least one of them.
Game will give Mob Effects of mob_effect key to player when they finish using items.
{
"type": "watersource:water_level",
"ingredient": {
"item": "minecraft:apple"
},
"water_level": 2,
"water_saturation_level": 0
}
This kind of recipe is used to add thist effect to itmes/fluids. It's recipe type is "watersource:thirst", and it has seven keys.
- group: (String)
Group of the recipe, same as Vanilla - ingredient: (Json object)
A "tag" or an "item", same as Vanilla - fluid: (String)
Registry name of a fluid - nbt: (Json array)
Same as Vanilla - duration: (int)
- amplifier: (int)
- probability: (int)
The probability of player get thirst effect
The item matching method of Thirst Recipe is same as WERecipe's.
{
"type": "watersource:thirst",
"ingredient": {
"item": "minecraft:potion"
},
"nbt":{
"Potion":"minecraft:water"
},
"duration": 1600,
"amplifier": 0,
"probability": 0.75
}