跳到正文

Reforge Stone

作者:IAFEnvoy

Add data-driven reforge stone system

收藏

介绍

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

Reforge Stone

This is a mod to add reforge stones, which can combine with other items and improve values.

By default, this mod don’t add any reforge stones, you need to define by yourself.

Define A Reforge Stone

Create a file in data/<datapack id>/reforge_stone/stone_type/ folder, then write following contents:

{
  //Translate in tooltip
  "translate": "block.minecraft.tnt",
  //combine with which item in anvil to obtain
  "ingredients": [
    //item or tag
    "minecraft:tnt"
  ],
  //which item can obtain this
  "targets": [
    //item or tag
    "#minecraft:enchantable/sharp_weapon"
  ],
  //the effects after obtain this
  "modifiers": [
    //modifiers, see below
  ]
}

All Available Modifiers

Attribute Modifier

{
  "type": "reforge_stone:attribute",
  //target attribute
  "attribute": "minecraft:generic.movement_speed",
  //modify value
  "value": "1",
  "operation": "ADDITION / MULTIPLY_BASE / MULTIPLY_TOTAL"
}

Glint Modifier

{
  "type": "reforge_stone:glint",
  //color, current available: red, yellow, blue, orange, green, purple, white, pink ,aqua
  "color": "red",
  //(optional) always show or only enchanted
  "always": true,
}

Max Damage Modifier

{
  "type": "reforge_stone:max_damage",
  //durability increment
  "color": "addition"
}

Name Modifier

{
  "type": "reforge_stone:name",
  //(optional) predix of item name
  "prefix": "",
  //(optional) suffix of item name
  "suffix": "",
  //(optional) color of item name in 0xAARRGGBB format
  "color": -1
}

Additional Function

There are 2 keys to control glint rendering.

  • reforge_stone:glint: Control the color. Available colors:
    GlintManager.java
  • reforge_stone:glint_always: Whether it should always render glint

For example,a diamond sword with red glint:
/give @s diamond_sword{"reforge_stone:glint":"red","reforge_stone:glint_always":true}

常见问题

Reforge Stone 支持哪些 Minecraft 版本?

Reforge Stone 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Reforge Stone 怎么安装?

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

评论

登录后评论和评分

IAFEnvoy 的其他作品

查看全部 →