跳到正文

Items From Text

作者:rWothers

Easily add custom items using text files

收藏

介绍

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


A mod that allows you to create and add new items using pure text files.

No dependencies, doesn’t need Fabric API.

Creating Items

  • Create a new folder called “itemsfromtext” in your .minecraft folder and navigate inside
  • For each item make a txt file and a png image. Both files should be named your item’s registry name (e.g. ender_pearl)
  • Inside the txt file complete one of the example templates below with your own item’s data
  • For custom namespaces, make a new folder within the main folder and put items in that folder

Crafting Recipes

Crafting recipes can either be shaped or shapeless.

To give your item a custom crafting recipe, add a recipe property.

Recipes must be defined like this:

recipe=shaped,TOP ROW,MIDDLE ROW,BOTTOM ROW,QUANTITY,KEYS or recipe=shapeless,QUANTITY,ITEMS

Examples:

Recipe for a Furnace:

recipe=shaped,XXX,X X,XXX,1,X-minecraft:cobblestone

Recipe for Flint and Steel:

recipe=shapeless,1,minecraft:flint,minecraft:iron_ingot

Templates

  • Each item has a name field that represents the display name of the item.
  • Most items (apart from tools) have a stack field which represents the max stack size.
  • Optional for all items: “isFireproof” field (true or false) – is the item immune to burning in fire or lava.
  • Optional for all items: “cookingTime” field (integer value) – marks the item as a fuel that cooks for the amount of ticks specified.
  • Optional for non tool items: “isHandheld” field (true or false) – is the item held like a stick or tool.
  • Optional for food items: “isSnack” field (true or false) – is the food consumed quickly.
  • Optional for tool items: “repairItem” field – the item that can repair the tool with an Anvil.

Basic Items:

name=Ender Pearl
stack=16

Food:

name=Apple
stack=64
type=food
hunger=4
saturation=2.4

Tools:

name=Ruby Pickaxe
type=tool
toolType=pickaxe
attackDamage=9
attackSpeed=1.2
miningSpeed=10
miningLevel=4
durability=5000
enchantability=20

  • “toolType” – the type of tool (supported are pickaxe, axe, shovel, hoe, sword)

常见问题

Items From Text 支持哪些 Minecraft 版本?

Items From Text 支持 Minecraft Java 版 1.16–1.18.2,共 7 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Items From Text 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分