A simple mod that applies custom functionality to right-click interactions with fluids, similar to filling a bucket with water, and using items, such as eating and drinking.
Have you ever wanted to make a custom mug that fills with water for beer when you right click water? Or filling a bowl with lava? Now you can! With existing items (or creating new ones with ContentTweaker), you can not only set interactions with liquids, you can also set interactions with consuming food items!
The config can be updated in-game through the Forge Mod Options menu for real-time testing.
Both fluid and item use interactions allow for optional commands to be run post-interaction, allowing you to make particles, play sounds, grant advancements/quests, etc.
Mods that auto-sort inventories may have issues. In the case of something like Inventory Tweaks, set enableAutoRefill=false.
@p, @a, @r, @s, etc.Syntax: fluid,input_item,output_item[,command1;command2;command3...]
Example for soaking a book in water into paper and playing a sound: water,minecraft:book,minecraft:paper,playsound block.cloth.break player @p
@p, @a, @r, @s, etc.Syntax: input_item,output_item[,command1;command2;command3...]
Example for returning bones when eating cooked chicken: minecraft:cooked_chicken,minecraft:bone,playsound entity.skeleton.step player @p
This mod was commissioned by Ski_ for Minecraft 1.12.2.