Skip to content

Revelations via Data Pack

DaFuqs edited this page Jun 15, 2022 · 9 revisions

You can specify custom Revelations via data pack via json. In the data pack, these json files have to be placed in a folder resources/data/<<mod_id>>/revelations

Properties

  • block_states: A mapping of block state definitions with original block to the block they should be visible as, when not revealed. Same format as the setBlock command
  • items: A mapping of item ids to the item they should be visible as, when not revealed
  • advancement (Identifier): the name of the advancement that will reveal all blocks and items when gotten

Example

{
  "block_states": {
    "minecraft:grass": "minecraft:beacon",
    "minecraft:tall_grass": "minecraft:obsidian",
    "minecraft:tall_grass[half=upper]": "minecraft:netherite_block"
  },
  "items": {
    "minecraft:nether_star": "minecraft:gunpowder"
  },
  "advancement": "minecraft:nether/root",
}

Now instead of grass, all the player sees, are beacons, obsidian and netherite. That is, of course, until they get the advancement "minecraft:nether/root", at which all those blocks turn "back" into grass. Nether Stars will look like enchanted gunpowder (since it inherits the enchantment glint of the nether stars). Of course this is a really useless example. Use the resources you want to gate as soure states.

Item Result Block Result

Clone this wiki locally