跳到正文

Sheepish’s API

作者:ItsSheepish

Adds a bit of functionality which I believe should be in vanilla

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

A helpful API for parts of mods made by Sheepish mainly serving as elements to solve issues which should be in vanilla


Features:

Non-stackable Item Advancement Tracking

Features new advancement trigger: “inventory_count”

Triggered by player gaining a count of specific item; works when picking up, updating inventory etc.
Works for non-stackable items as opposed to regular items.
Untested for stackable items to measure multiple stacks.

Example criteria taken from Hard Totems Mod (InDev):

"criteria": {
    "has_items": {
      "trigger": "sheepish_api:inventory_count",
      "conditions": {
        "item": "hard-totems:netherite_totem",
        "count": 3
      }
    }
}

Mirror-able Recipes

New Recipe Type: “mirrored_shaped”

Allows for 2 new fields:

  • “mirror_horizontal” – works like normal shaped recipes (boolean)
  • “mirror_vertical” – allows for upside down crafting entry (boolean)

Functions like shaped recipe

Example type and fields taken from Hard Totems Mod (InDev):

"type": "sheepish_api:mirrored_shaped",
"mirror_horizontal": true,
"mirror_vertical": true

Shaped-Shapeless Recipes

New Recipe Type: “shaped_shapeless”

Disregards any invalid recipe instances

Functions like shaped recipe with additional shapeless_ingredients field

Example field taken from GitHub Page:

{
  "type": "sheepish_api:shaped_shapeless",
  "category": "equipment",
  "pattern": [
    "# #",
    "   ",
    "   "
  ],
  "key": {
    "#": {
      "item": "minecraft:gold_ingot"
    }
  },
  "shapeless_ingredients": [
    {
      "item": "minecraft:diamond"
    },
    {
      "item": "minecraft:emerald"
    }
  ],
  "result": {
    "id": "minecraft:netherite_ingot",
    "count": 1
  }
}

PLANNED:

  • Custom Advancement Types

常见问题

Sheepish’s API 支持哪些 Minecraft 版本?

Sheepish’s API 支持 Minecraft Java 版 1.21.1–1.21.11,共 11 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Sheepish’s API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

ItsSheepish 的其他作品

查看全部 →