Skip to content

[1.21.1] Json Configs

Insane96 edited this page Apr 19, 2026 · 1 revision

Json Config

Json configs are json files in the config folder created and loaded at world load or on /reload, similar to data packs but are global, but are used for a limited amount of stuff.

Player Attribute Modifiers

config/insanelib/Base/Player attributes/players_attribute_modifiers.json

Attributes applied to players (requires world re-join / dimension change to update them). Learn more about Attribute modifiers.

The format is simply a list of attribute modifiers:

Key Type Info
attribute Identifier The attribute id
id Identifier The modifier id
amount Decimal The amount for the modifier
operation Enum The operation of the modifier, can be add_value, add_multiplied_base, add_multiplied_total

The following json will make players have 5% less movement speed and -1 block reach

[
  {
    "attribute": "minecraft:generic.movement_speed",
    "id": "insanelib:player_movement_speed_reduction",
    "amount": -0.05,
    "operation": "add_multiplied_base"
  },
  {
    "attribute": "minecraft:player.block_interaction_range",
    "id": "insanelib:player_block_reach_reduction",
    "amount": -1.0,
    "operation": "add_value"
  }
]

Clone this wiki locally