Skip to content

Data Pack Format

Wouter Pauwels edited this page Jun 19, 2024 · 11 revisions

This page lists the data pack object types/serializers that are added by Artifacts. Unless you want to know something specific about the data pack that comes with the mod, you probably don't need these.

Tags

Blocks

  • artifacts:mineable/digging_claws: Blocks that the digging claws can harvest, if they have the correct tool tier. Contains #mineable/pickaxe, #mineable/axe, #mineable/shovel and #mineable/hoe by default
  • artifacts:campsite_chests: Chests that can generate inside campsite when the useModdedChests config option is turned on. Includes the vanilla chest and wooden chests from Quark
  • artifacts:rooted_boots_grass: Blocks that restore hunger with the Rooted Boots. Contains #animals_spawneable_on by default.
  • artifacts:snow_layers: Blocks that that affect the artifacts:generic.movement_speed_on_snow attribute

Items

  • artifacts:artifacts: Contains all artifacts. Used in the Amateur Archaeologist advancement

Entity Types

  • artifacts:creepers: Entities that avoid players wearing the Kitty Slippers. Includes creepers from creeper overhaul by default

Mob Effects

  • artifacts:antidote_vessel_cancellable: The mob effects that can are affected by the Antidote Vessel

Damage Types

  • artifacts:is_hot_floor: Damage types that are nullified by the Strider Shoes

Features

  • artifacts:campsite

    The Artifacts campsite. Uses an empty feature config.

Placement Modifiers

  • artifacts:campsite_count

    Similar to minecraft:count, but reads the count value from the config.

  • artifacts:campsite_height_range

    Similar to a uniform minecraft:height_range placement. The minimum and maximum Y-levels are read from the config.

  • artifacts:ceiling_height_filter

    • max_height: the maximum distance between the current block and another solid block above it.

    Used to prevent too many campsites from spawning in large, open caves.

Loot Conditions

  • artifacts:artifact_rarity_adjusted_chance

    • default_probability: the probability that this loot condition succeeds when artifactRarity is set to 1.

    Similar to minecraft:random_chance, but the actual probability used is weighted closer to 0 or 1 depending on the artifactRarity value in the Artifacts config. The actual probability used is p ÷ (p + r - p × r), where p is the default_probability field and r is the artifactRarity value set in the config. This loot condition always fails if the artifactRarity value in the config is greater than 9999.

  • artifacts:config_value_chance

    • config: either archaeology, entity_equipment or everlasting_beef

    Succeeds if a randomly generated number between 0 and 1 is smaller than the associated value set in the config.

Loot Functions

  • artifacts:replace_with_loot_table

    • loot_table: the loot table to roll from

    Replaces the item with an item rolled from a loot table. Logs an error unless exactly 1 item was generated from the loot table. Used for archaeology loot in the Fabric version of Artifacts.

Loot Modifiers (Forge/NeoForge Only)

  • artifacts:roll_loot_table

    • lootTable: the loot table that loot is generated from.
    • replace: (optional, default = false) whether the loot generated previously should be completely replaced by the rolled loot table.

    Used in combination with the forge:loot_table_id/neoforge:loot_table_id loot condition to add loot to existing loot tables. The replace option is used for archaeology loot.

    Note: due to how the loot_table_id loot condition works, items will only be added to the generated loot if the target loot table is the actual loot table being rolled. If a loot table references other loot tables, only the top-level loot table will have its loot modified, the loot from any referenced loot tables will remain unchanged.