跳到正文

OriginsxTrinkets

作者:blueflare8246

This mod allows player to create their own custom trinket items using the origins mod

收藏

介绍

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

Description:
This mod makes it so that you can create custom trinket items using the origins mod

Commands:


/originsxtrinkets registertrinket

is used to directly add the newly generated items from the json into the item_gen.json file to generate and register the trinkets you make


/originsxtrinkets unregistertrinket

is used to directly remove any trinket item from the item_gen.json config file

(please note that in order to see changes made by using the registertrinket and unregistertrinket command you must reload your modpack)


/originsxtrinkets debugmode true

turns off and on debuging messages within the game


Set Up Guide:


Step 1: Create a new datapack and put it in your minecraft worlds datapack folder then create the following list of folders

saves\\datapacks\\data\\originsxtrinkets\trinket_items\power_trinkets.json


Step 2: edit the power_trinket.json so that it looks like the following example

{
  "type": "originsxtrinkets:power_trinket",

  "fire_ring": {
    "item": "bluestrinkets:fire_ting",
    "tooltip":"This is a fire ringsss",
    "tooltip_color":"#5E4CE4",
    "shift_tooltip": "fire ring does alot more things",
    "shift_tooltip_color":"#BCB14E",
    "crtl_tooltip": "fire ring does alt of more things",
    "crtl_tooltip_color":"#4EBC9B",
    "powers": [
      "origins:fire_immunity"
    ]
  },

  "climbing_belt": {
    "item": "bluestrinkets:climbing_belt",
    "powers": [
      "origins:climbing"
    ]
  }
}

#

Definitions:
# =================================================================
# "item"- is used to hold your custom items namespace or it is used to get an existing items namespace. this will get the select item using the namespace to apply the origin powers to.
# Also note that item can be used to apply origin powers to existing items as well as making custom items as well.
# =================================================================
# "powers"- is used to hold the origin powers you want to apply to the user when the trinket is worn. this is done through typing the powers namespace within powers.
#   =================================================================
# "tooltip"- if the item you are making is a custom one then this will generate a normal tooltip for that item.
# ==================================================================
# "tooltip_color"- is used to set a custom color for the text of the select tooltip.

Step 3: if the items you are creating do not already exist then you must update the config of the mod so that it is able to generate

the trinket items this config file can be found here \.minecraft\config\originsxtrinkets\gen_items.json

then once you are in the config file add in your custom items namespace here is an example

{
  "generated_items": [
    "bluestrinkets:fire_ring",
    "bluestrinkets:climbing_belt"
  ]
}

this will create new items with the exact namespaces you put into the generated items config that you can use to make them into a trinket item

another way to also register your trinket items is to use the registertrinket command

=================================================================

/originsxtrinkets registertrinket all

=================================================================

when this command is ran all items that were not put within the generated items config will be added into the config file for you automatically

however, when using this command in order to see the newly registered items you must restart your modpack


Step 4: with the new items that you just generated using there custom namespaces implement the trinket side of the item. like the item being in the ring, belt or necklace slots and etc

in order to setup the trinket side of things look here trinkets api

Also if you want to see an example datapack look here https://modrinth.com/datapack/origins-x-trinkets-example-pack/versions

常见问题

OriginsxTrinkets 支持哪些 Minecraft 版本?

OriginsxTrinkets 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

OriginsxTrinkets 怎么安装?

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

评论

登录后评论和评分

blueflare8246 的其他作品

查看全部 →