Infinity Stone CoreWiki 8.0
Pugmeowla

These pages are for 8.0, which isn't out yet. The version on CurseForge and Modrinth is still 7.3. Read the 7.3 docs

Custom Stones

Any item can be an Infinity Stone. One file makes it fit the gauntlet, look like a stone and give a power.

On this page
  1. How it works
  2. Fields
  3. Example
  4. Drawing a stone yourself
  5. Checking for a stone
  6. Making it act like a stone on the ground

How it works#

Every item that can go in the Infinity Gauntlet has a file in data/infinity/gauntlet_stones/, including the six Infinity Stones. Once an item has one:

  • It fits in any of the gauntlet's six slots (but not twice), in custom gauntlets and in the Cosmi-Rod.
  • Everything is drawn from what's actually in each slot. The gauntlet's inventory icon colors that slot's pixel (textures/item/gauntlet_slots/slot_[n].png), and the worn, held and ground models draw the stone on that slot's socket (geo/gauntlet_slots/slot_[n].geo.json).
  • It looks like a 1.12.2 stone everywhere: its texture tinted with color, unlit, with two scrolling glints in glint_color.
  • Its power is given while it's in any slot of the active gauntlet and taken away as soon as it comes out.
  • The gauntlet's tooltip lists it as " - Name" in tooltip_color, sorted by tooltip_order.

Fields#

KeyDefaultMeaning
itemrequiredThe stone's item. It has to be registered, and an item can only be one stone.
color#FFFFFF#RRGGBB. Tints the stone everywhere (item, gauntlet worn, held, on the ground, inventory icon, head) and colors its tooltip line and insert particles.
glinttrueWhether the two scrolling glints are drawn.
glint_colorcolor#RRGGBB color of the glints.
tooltip_colorcolorColor of its line in the gauntlet tooltip. A chat color name (aqua, light_purple…) or #RRGGBB.
tooltip_order100Where it goes in the tooltip. Lower comes first. The six stones use 0 to 5.
powernonePalladium power given while the stone is in any slot of the active gauntlet (off hand or Curios hands), and while it's held if hand is on. In a Cosmi-Rod, a stone without power gives the power with the same ID as the item.
handtrueGives the stone's power while the stone itself is held in either hand. The six built-in stones set it to false, because their held power comes from their own item powers.
headfalseLets the stone go in the Curios head slot, where it's drawn on the forehead and gives its power.
textureinfinity:textures/item/infinity_stone.pngThe stone cube's texture, tinted by color. Uses the 1.12.2 layout, a 6×6×6 box UV cube on a 32×16 texture.

Example#

Stone file

The Test Stone from the test pack:

data/infinity/gauntlet_stones/test_stone.json
{
  "item": "infinity_test_stone:test_stone",
  "color": "#FF69B4",
  "glint_color": "#FFC2E2",
  "tooltip_order": 6,
  "power": "infinity_test_stone:test_stone"
}

Item model

To give the item the stone look in your inventory, use the mod's stone model as its parent:

assets/infinity_test_stone/models/item/test_stone.json
{
  "parent": "infinity:item/infinity_stone"
}

The real Time Stone

data/infinity/gauntlet_stones/time_stone.json
{
  "item": "infinity:time_stone",
  "color": "#13CF55",
  "glint_color": "#12E772",
  "tooltip_color": "green",
  "tooltip_order": 4,
  "power": "infinity:time_stone",
  "hand": false
}

The six built-in stones name their own power like any addon stone, so the gauntlet gives it out the same way.

Drawing a stone yourself#

Palladium render layers can draw any stone with the stone look using the layer type infinity:stone:

render layer
{
  "type": "infinity:stone",
  "stone": "infinity_test_stone:test_stone",
  "model": "infinity_test_stone:geo/test_stone_socket.geo.json"
}

Checking for a stone#

Use the infinity:gauntlet_slot condition (or infinity:gauntlet_slot_mainhand for a held gauntlet) in other powers. See Conditions.

JSON
{
  "type": "infinity:gauntlet_slot",
  "item": { "item": "infinity_test_stone:test_stone" }
}

Making it act like a stone on the ground#

Add a ground item file with "unique": true so dropped copies can't be duplicated.