自定义物品交互
比以往更具互动性!
一款简单的模组,为与流体和物品的右击交互添加自定义功能,类似于用水桶装水,或使用物品(如食用和饮用)。
? 关于
你是否曾想过制作一个可以右键点击水桶来装满啤酒的杯子?或者用碗盛岩浆?现在你可以了!利用现有物品(或使用 ContentTweaker 创建新物品),你不仅可以设置与液体的交互,还可以设置消耗食物的交互!
- 想要像原版玻璃瓶那样,喝完啤酒后留下空杯子吗?没问题!
- 想要在使用 ContentTweaker 创建的类似绷带的食物使用后留下线头吗?很简单!
- 想要吃完烤鸡后留下骨头吗?请参阅配置示例!
可以通过 Forge Mod Options 菜单在游戏内更新配置,以便进行实时测试。
流体和物品使用交互均允许在交互后运行可选命令,从而让你生成粒子、播放音效、授予进度/任务等。
自动整理背包的模组可能会出现问题。如果是 Inventory Tweaks 这类模组,请设置 enableAutoRefill=false。
? 流体交互
- 当手持物品 A 右键点击流体 X 时,物品 A 将被替换为物品 B
- 事件触发时会执行可选的命令(系列),因此可以播放声音、生成粒子等
- 命令将在 OP 玩家上下文中执行,支持所有常见的命令变量,如
@p、@a、@r、@s 等
语法:fluid,input_item,output_item[,command1;command2;command3...]
示例:将书浸泡在水中变成纸并播放声音:water,minecraft:book,minecraft:paper,playsound block.cloth.break player @p
? 物品使用交互
- 当可消耗物品 A 被消耗殆尽时,物品 A 将被替换为物品 B
- 事件触发时会执行可选的命令(系列),因此可以播放声音、生成粒子等
- 命令将在 OP 玩家上下文中执行,支持所有常见的命令变量,如
@p、@a、@r、@s 等
语法:input_item,output_item[,command1;command2;command3...]
示例:吃完烤鸡后返回骨头:minecraft:cooked_chicken,minecraft:bone,playsound entity.skeleton.step player @p
本模组由 Ski_ 委托开发,适用于 Minecraft 1.12.2。
Custom Item Interactions
More interactive than ever!
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.
? About
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!
- Want a mug of beer to leave behind an empty mug like the vanilla glass bottle? Done!
- Want a bandage-like food item created in ContentTweaker to leave behind threads upon use? Easy!
- Want to leave bones behind after eating a cooked chicken? See the config example!
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.
? Fluid Interactions
- If a fluid X is right-clicked while holding item A, item A is replaced with item B
- Optional (series of) commands are executed upon the event, so sounds can be played, particles can be spawned, etc.
- Commands are executed in an OP player context, which supports every common command variable, such as
@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
? Item Use Interactions
- If a consumable item A is used up, item A is replaced with item B
- Optional (series of) commands are executed upon the event, so sounds can be played, particles can be spawned, etc.
- Commands are executed in an OP player context, which supports every common command variable, such as
@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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧