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
/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<Your World>\datapacks<Your Datapack>\data<namespace of datapack>\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