Yummy Steak
作者:codehead
Sprinkle steak with stardust for a filling meal. Adds a Filling Steak with saturation effect, which can be enchanted to never run out of steak.
介绍
中文介绍正在准备中,下面暂时显示原文。
Yummy Steak
Sprinkle steak with stardust for a filling meal.
Content
- Craft _Filling Steak_ with 8 _Steak_ and 1 _Nether Star_ (center), which applies the saturation effect for an hour when eaten.

- Adds level 30 enchantment _Yummy_ to never run out of steak (can only be applied on the _Filling Steak_).

- Don’t consume any spoiled steak, it tastes disgusting.
Technical Concept
Besides the gameplay functionality the goal was to provide these custom features without using the global tick function to check for changes in the player’s inventory.
- saturation effect is applied via
consumabledata component (added in MC 1.21.2) - not consuming the item is handled via the
use_remainderdata component (added in MC 1.21.2) - as use_remainder would need a recursive definition to be infinitly reuseable, a dummy-item is used, which then is swapped out for the actual food item
- instead of constantly checking whether a dummy item exists and is in need of replacement, the enchantment effect component
minecraft:tickwith the entity effectrun_function(added in MC 1.21) is used to change the dummy item (only executed for one tick, when the item is first held, so more resource efficient).
常见问题
Yummy Steak 支持哪些 Minecraft 版本?
Yummy Steak 支持 Minecraft Java 版 1.21.5–26.2,共 11 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。
Yummy Steak 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
评论
登录后评论和评分