How To Create A Custom Ring
In Potion Ring Reforged 2.0, you have possibility to create custom ring with modded effect. This tutorial explain what to do!
First launch the game for generate configs files. The mod have 2 configs files :
- potionring-common.toml (With one config for create slots ring (FORGE 1.16.5-1.19.4))
- potionring.txt (For create customs modded rings)
Inside potionring.txt you can look here :
For example I add a Leech Ring with Lycanites Mobs mod, resulting in :
The file works like this: modid:effect#colorOfEffect
For the modid:effect in this example is lycanitesmobs:leech
And for color I look the Source of Lycanites Mobs
I copy 00FF99 and paste it in HexaColor Website :
I copy 65433 and paste it after # -> lycanitesmobs:leech#65433
But this requires an understanding of the code and digging through numerous files, and some mods have no public source.
For this use the command getColorEffect in game like /potionring getColorEffect lycanitesmobs:leech, resulting in :
It's the same result as in the code, click on green selection and when paste it you have the number 65433. For finalise the creation, create a resource pack and data pack :
- Resource Pack (for Model and Lang Ring)
- Data Pack (for Tags and Recipes)
In resource pack create files :
assets/potionring/lang/en_us.json (For Language Ring) :
{
"item.potionring.ring_of_leech": "Ring of Leech"
}
assets/potionring/models/item/ring_of_leech.json (For Model Ring (It's the same in all vanilla ring))
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "potionring:item/gold_ring",
"layer1": "potionring:item/gem_color",
"layer2": "potionring:item/gem_light"
}
}
And in data pack :
data/curios/tags/items/ring.json (Required for equip Ring) (IN 1.21+ the correct path is data/curios/tags/item/ring.json)
{
"replace": "false",
"values": [
"potionring:ring_of_leech"]
}
data/curios/recipes/ring_of_leech.json (Optional, create recipes in datapack or with CraftTweaker)
{
"type": "minecraft:crafting_shaped",
"group": "rings",
"pattern": [
" # ",
"#R#",
" # "
],
"key": {
"#": {
"item": "lycanitesmobs:cooked_chupacabra_meat"
},
"R": {
"item": "potionring:potion_ring"
}
},
"result": {
"item": "potionring:ring_of_leech"
}
}
This 2 examples in this :
resourcepack_prexample.zip
datapack_prexample.zip
Finally testing Ring in game :
It works !
For Modpack maker I recommend Paxi (Forge / Fabric / NeoForge) for automatic adds