Infinity Stone CoreWiki 8.0
All wikis

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

Addon Development

New stones, skins, gauntlets and props without writing Java. It's all JSON in an addon pack or a mod.

On this page
  1. What you can add
  2. How these files are read
  3. Making an addon pack
  4. Using the mod's powers
  5. In-game reference
  6. Real examples

What you can add#

Gauntlet stones

Folder
data/<namespace>/infinity/gauntlet_stones/
One file per
item that fits in the gauntlet

Gauntlet skins

Folder
data/<namespace>/infinity/gauntlet_skins/
One file per
skin

Custom gauntlets

Folder
data/<namespace>/infinity/gauntlets/
One file per
item or power that acts as a gauntlet

Ground items

Folder
data/<namespace>/infinity/ground_items/
One file per
item that lies on the ground like a stone

Stone containers

Folder
data/<namespace>/infinity/stone_containers/
One file per
item holding a stone that glows with it

Ability overlays

Folder
assets/<namespace>/ability_overlays/
One file per
power or ability themed in the skill tree (a resource, so it can go in a resource pack)

Palladium powers

Folder
data/<namespace>/palladium/powers/
One file per
power, using the mod's ability types and conditions if you want

Immunities

Folder
abilities in a Palladium power
One file per
kind of stone manipulation others can't use on it (mental, reality, soul, spatial)

How these files are read#

  • They go in data/<namespace>/infinity/<folder>/, where <namespace> is your mod or pack ID. The ID is <namespace>:<file name> (for example gem_core:ruby_gauntlet), so two addons can never replace each other's files by accident.
  • The older data/infinity/<folder>/ still works, with just the file name as the ID. The mod's own files live there, so a file with the same name there in a higher priority pack replaces one of the mod's own.
  • The mod reads them from every mod and every pack in the addonpacks folder.
  • File names starting with _ are skipped, which is handy for templates and switched off files.
  • They're only read when the game starts, so restart after changing them. /reload won't pick them up.
  • A bad value falls back to its default and a broken file is skipped. Either way it gets logged once (Gauntlet stone <id>: …, Gauntlet skin …, Custom gauntlet …, Ground item …), so check logs/latest.log if something doesn't show up.

Making an addon pack#

Infinity Stone Core is a Palladium addon itself, and its content uses Palladium's addon pack format. The easiest way to add to it is your own addon pack: a folder (or zip) in .minecraft/addonpacks/ with data, assets and Palladium's addon/ folder for new items and blocks. The pack format itself is covered in Palladium's documentation, and the Palladium addon pack template generator makes an empty pack to start from.

The examples on these pages come from infinity_test_stone, a working test pack that adds a pink Test Stone. It was made before namespaced folders, so its stone and ground item files use the older data/infinity/ folder, which still works:

addonpacks/infinity_test_stone
infinity_test_stone/
├── pack.mcmeta
├── addon/infinity_test_stone/items/test_stone.json                  the item (a Palladium addon item)
├── assets/infinity_test_stone/models/item/test_stone.json           {"parent": "infinity:item/infinity_stone"}
├── assets/infinity_test_stone/lang/en_us.json                       the item's name
├── assets/infinity_test_stone/ability_overlays/illusions.json       optional, themes one ability in the skill tree
├── data/infinity_test_stone/palladium/powers/test_stone.json        the stone's power and abilities
├── data/infinity/gauntlet_stones/test_stone.json                    makes it fit in the gauntlet
└── data/infinity/ground_items/test_stone.json                       optional, makes it lie on the ground like a stone

pack.mcmeta

pack.mcmeta
{
  "pack": {
    "id": "infinity_test_stone",
    "version": "1.0.0",
    "description": "Test Gauntlet Stone addon for Pugmeowla's Infinity Stone Core",
    "pack_format": 15
  },
  "dependencies": {
    "common": {
      "infinity": ">=7.4"
    }
  }
}

Item

addon/infinity_test_stone/items/test_stone.json
{
  "max_stack_size": 1,
  "rarity": "epic",
  "is_fire_resistant": true,
  "creative_mode_tab": {
    "tab": "infinity:infinity",
    "after": "infinity:mind_stone"
  }
}

Name

assets/infinity_test_stone/lang/en_us.json
{
  "item.infinity_test_stone.test_stone": "Test Stone"
}

The same files work in a normal mod's src/main/resources.

Using the mod's powers#

  • The stone powers are infinity:power_stone, infinity:space_stone, infinity:reality_stone, infinity:soul_stone, infinity:time_stone and infinity:mind_stone. The gauntlet's is infinity:infinity_gauntlet. Check for them with palladium:has_power.
  • To check what's in a gauntlet use infinity:gauntlet_slot. To check whether a stone is available at all use infinity:stone_equipped. Every condition and ability type is on the reference page.
  • To give your own power the generated skin abilities, add an entry {"infinity:generate": "gauntlet_skins"} to its abilities, like the gauntlet power does. When it loads, that entry is swapped for every skin's apply ability and tree entry.
  • Scoreboard objectives you can read in conditions and energy bars: DamageCycle (power level), SoulStorage (souls), and tickrateCycle and timestonesidebar (Time Stone step). The old power_stone to mind_stone objectives for stones in the gauntlet are gone in 8.0: use infinity:gauntlet_slot instead.
  • To let players switch part of your power off, add an infinity:toggle ability and check its setting with the infinity:setting condition, like the stones' passive toggles.

In-game reference#

When Palladium generates its documentation (into mods/documentation/), the mod adds its own pages under infinity/: gauntlet_stones.html, gauntlet_skins.html, custom_gauntlets.html, ground_items.html, stone_containers.html and ability_overlays.html. Its ability and condition types go into Palladium's own pages. They're generated from the code, so they always match the version you have.

Real examples#

  • Pugmeowla's Infintrix turns four Omnitrixes into power gauntlets: the Prototype and Ultimatrix with gloves that take the watch's customised colours, the Recalibrated with its stones set into the watch band, and the Omniverse Omnitrix with its stones around the watch face. Its own power uses infinity:gauntlet_slot: with the Power Stone in, the Omnitrix times you back in straight away, and with all six it unlocks every alien and Master Control, which a Snap burn takes away again. See Infintrix.
  • Pugmeowla's Infinity Protocol makes ten nanotech Iron Man suits from Satsu's Iron Man Addon and Fsang's Heropack item gauntlets (Marks with the nano gauntlet, Models with the Endosymbiotic Gauntlet's look), drawn only while the left hand is formed. With all six stones in, it also keeps refilling the suit's energy, nanites and Pym particles. See Infinity Protocol.
  • Pugmeowla's Herbs of Wakanda makes the Black Panther's Necklace an item gauntlet with its stones on the body bone. See Herbs of Wakanda.
  • The mod's own data/infinity/gauntlet_skins, gauntlet_stones and ground_items folders are good to copy from.