跳至主要內容

一直吃

芒果凍布丁原創2025年6月24日小於 1 分鐘KubeJS 6

讓玩家可以一直吃食物,即使已經飽了。

ItemEvents.modification((event) => {
  Ingredient.all.itemIds.forEach((id) => {
    event.modify(id, (item) => {
      if (item.foodProperties != null) {
        item.foodProperties = (properties) => {
          properties.alwaysEdible();
        };
      }
    });
  });
});

來源

https://www.curseforge.com/minecraft/mc-mods/alwayseat

上次編輯於: 2025/6/24 下午11:18:52
貢獻者: EvanHsieh0415