

?简介:
一个用于标准化金块和材料碎片的轻量级 Fabric 库。
Nuggets API 的目标很简单:阻止每个模组以略有不同的方式重新发明相同的微小材料。该项目提供了一个干净且轻量级的基础,供其他模组构建其上,从而确保玩家和开发者都能获得统一的体验。

✨功能:
该 API 库从头开始构建,旨在轻量且无卡顿,并使用通用的 c: 标签以及我们自己的 nuggets-api: 标签,以便与您的模组无缝集成。它为游戏添加了各种金块物品和材料碎片。它还被翻译成多种常用语言,如法语、德语、中文和西班牙语!
物品
-
金块模板 (Nugget Template) -> 必需用于合成所有新金块的模板!使用 4 根木棍按圆形图案合成

-
小型锻造模板 (Small Smithing Template) -> 一种下界合金升级锻造模板,但更小,用于将钻石金块升级为下界合金金块时。可以在堡垒遗迹中找到,或使用 1 个普通锻造模板合成

您还可以使用 9 个小型锻造模板合成为普通锻造模板!
金块
-
木屑 (Wood Splinter) -> 木金块。可以使用 1 个金块模板和 1 根木棍合成

-
石子 (Stone Pebble) -> 石金块。可以使用 1 个金块模板和 1 个石头合成

-
煤块 (Coal Lump) -> 煤金块。可以使用 1 个金块模板和 1 个煤炭或 1 个木炭合成

-
红石块 (Redstone Nugget) -> 红石金块。可以使用 1 个金块模板和 1 个红石合成

-
石英碎片 (Quartz Shard) -> 石英金块。可以使用 1 个金块模板和 1 个石英合成

-
紫水晶晶体 (Amethyst Crystal) -> 紫水晶金块。可以使用 1 个金块模板和 1 个紫水晶碎片合成

-
青金石块 (Lapis Lazuli Chunk) -> 青金石金块。可以使用 1 个金块模板和 1 个青金石合成

-
祖母绿块 (Emerald Chunk) -> 祖母绿金块。可以使用 1 个金块模板和 1 个祖母绿合成

-
钻石碎片 (Diamond Shard) -> 钻石金块。可以使用 1 个金块模板和 1 个珍贵钻石合成

-
下界合金金块 (Netherite Nugget) -> 下界合金金块。通过将钻石金块与小型锻造模板和下界合金锭进行锻造获得,或使用 1 个金块模板和 1 个珍贵的下界合金锭合成
![Netherite Nugget [Crafting]](https://cdn.modrinth.com/data/cached_images/607c4672d43f58f8266d54b623e6cd69615a0ddd.png)

? 对于开发者
Nuggets API 在设计时就考虑了集成。所有材料都通过标签暴露,使得跨模组兼容性变得简单直接。鼓励您在配方中使用标签,而不是硬编码物品依赖!
通用标签参考
| 材料 |
物品 ID |
通用标签 (c:) |
| 钻石 |
nuggets-api:diamond_nugget |
#c:nuggets/diamond |
| 下界合金 |
nuggets-api:netherite_nugget |
#c:nuggets/netherite |
| 祖母绿 |
nuggets-api:emerald_nugget |
#c:nuggets/emerald |
| 金块模板 |
nuggets-api:nugget_template |
#c:nuggets/template |
| 小型锻造模板 |
nuggets-api:small_netherite_upgrade_smithing_template |
#c:smithing_templates/small_netherite_upgrade |
? 安装
要在开发环境中使用 Nuggets API,请将以下内容添加到您的 build.gradle 中:
repositories {
maven { url = "https://jitpack.io" } // 可选,但如果希望使用下面的 include 依赖将 API 打包到您的模组中,则必须添加
}
dependencies { // 你可以在 nuggets-api: 之后更改 API 版本为你想要使用的版本
modImplementation "com.titan1um:nuggets-api:a1.0.0+1.20.1" // 必需
include "com.github.T1taniumF0rge-Industries-Inc:nuggets-api:a1.0.0+1.20.1" // 可选,除非你想将 API 打包到你的模组中(Jar-in-Jar)
}

? 支持我!
为了帮助我并让我开发更有趣的项目,请分享并推荐这个模组。非常感谢!!!
你也可以尝试我的其他项目 这里 或者我和 Polr 一起制作的项目 这里! :D



?Introduction:
A lightweight Fabric library for standardized nuggets and material fragments.
The goal of Nuggets API is simple: stop every mod from reinventing the same tiny materials in slightly different ways. This project provides a clean and lightweight foundation that other mods can build on, ensuring a unified experience for players and developers alike.

✨Features:
Built from the ground up to be lightweight and lag-free and uses common c: tags as well as our own nuggets-api: tags for seamless integration with your mods, this API library adds various nuggets items and material fragments to the game. It is also translated into various well used languages like French, German, Chinese and Spanish!
Items
-
Nugget Template -> a template required to craft all of the new nuggets! Crafted using 4 sticks in a circle pattern

-
Small Smithing Template -> a netherite upgrade smithing template but smaller, used when upgrading a diamond nugget to netherite. Can be found in bastion remnants or crafted with 1 regular smithing template

You can also craft back a regular smithing template by using 9 small smithing templates!
Nuggets
-
Wood Splinter -> a wood nugget. Can be crafted using 1 nugget template and 1 stick

-
Stone Pebble -> a stone nugget. Can be crafted using 1 nugget template and 1 stone

-
Coal Lump -> a coal nugget. Can be crafted using 1 nugget template and 1 coal or 1 charcoal

-
Redstone Nugget -> a redstone nugget. Can be crafted using 1 nugget template and 1 redstone

-
Quartz Shard -> a quartz nugget. Can be crafted using 1 nugget template and 1 quartz

-
Amethyst Crystal -> an amethyst nugget. Can be crafted using 1 nugget template and 1 amethyst shard

-
Lapis Lazuli Chunk -> a lapis lazuli nugget. Can be crafted using 1 nugget template and 1 lapis lazuli

-
Emerald Chunk -> an emerald nugget. Can be crafted using 1 nugget template and 1 emerald

-
Diamond Shard -> a diamond nugget. Can be crafted using 1 nugget template and 1 precious diamond

-
Netherite Nugget -> a netherite nugget. Obtained by smithing a diamond nugget with the small smithing template and a netherite ingot or by crafting using 1 nugget template and 1 valuable netherite ingot
![Netherite Nugget [Crafting]](https://cdn.modrinth.com/data/cached_images/607c4672d43f58f8266d54b623e6cd69615a0ddd.png)

? For Developers
Nuggets API is built with integration in mind. All materials are exposed through tags, making cross-compatibility straightforward. You are encouraged to use tags in your recipes rather than hard-coding item dependencies!
Common Tag Reference
| Material |
Item ID |
Common Tag (c:) |
| Diamond |
nuggets-api:diamond_nugget |
#c:nuggets/diamond |
| Netherite |
nuggets-api:netherite_nugget |
#c:nuggets/netherite |
| Emerald |
nuggets-api:emerald_nugget |
#c:nuggets/emerald |
| Nugget Template |
nuggets-api:nugget_template |
#c:nuggets/template |
| Small Smithing Template |
nuggets-api:small_netherite_upgrade_smithing_template |
#c:smithing_templates/small_netherite_upgrade |
? Installation
To use Nuggets API in your development environment, add the following to your build.gradle:
repositories {
maven { url = "https://jitpack.io" } // Optional but required if you wish to bundle the API into your mod by using the include dependency below
}
dependencies { // You can change the API version after nuggets-api: to the one you want to use
modImplementation "com.titan1um:nuggets-api:a1.0.0+1.20.1" // Required
include "com.github.T1taniumF0rge-Industries-Inc:nuggets-api:a1.0.0+1.20.1" // Optional unless you want to bundle the API into your mod (Jar-in-Jar)
}

? Support me!
To help me and make me develop more fascinating projects, share and recommend this mod. Thank you so much!!!
You can also try my other projects here or the projects me and Polr made here! :D

评论 0
登录后参与评分
还没有评论,来抢沙发吧