Skip to content

Latest commit

 

History

History
54 lines (54 loc) · 2.55 KB

1.21 PORT.md

File metadata and controls

54 lines (54 loc) · 2.55 KB

1.21 Technical Changes

This is a Prototype document. 1.21 is not yet final.
This Document only is for Datapack Changes. The Java changes are too significant to list.

Module.json

  • module names are deprecated.
    this concept is replaced with path based IDs
    blade_sword -> arsenal:blade/normal
    this means skins, synergies and co need to be adjusted
  • the translation key changed miapi.module.blade_normal -> miapi.module.tm_arsenal.blade.normal

Material.json

  • material keys and translation are deprecated.
    this concept is replaced with path based IDs
    iron -> miapi:metal/iron
    test-mod:metal/iron will be translated by the key miapi.material.test-mod.metal.iron
  • the [translate.material] concept has been deprecated. For module translations simply use %s now

Converters.json

  • the module format on the Item has changed significantly and the converter format reflects that. We recommend checking Arsenals converters for more details

Properties

  • Properties no longer support Uppercase letters.
  • in addition, their system has been moved to an ID system, technically all properties are now miapi:model instead of model, but when no ModID is given miapi is defaulted. this has been done to make the api more extendable while avoiding collisions

Individual changes

  • texture -> model
  • guiOffset -> gui_offset
  • displayName -> display_name
  • itemId -> item_id
  • materialProperty -> material_property
  • allowedInSlots -> allowed_in_slots
  • repairPriority -> repair_priority
  • allowedMaterial -> allowed_material
  • modelTransform -> model_transform
    the inner replace/merge part have been removed and replaced by a boolean replace inside the main json
  • attributes
    deprecated uuid system, only operation and target_operation remain.
  • isWeapon -> is_weapon
  • crossbowAmmunition -> crossbow_ammunition
  • equipmentSlot -> equipment_slot
  • fireProof -> fire_proof
  • healthPercent -> health_percent
  • isPiglinGold -> is_piglin_gold
  • itemLore -> item_lore
  • luminiousLearning -> luminious_learning
  • mining_level
    the concept of traditional mining levels does no longer exist in minecraft 1.21.
    It has been replaced with a Rule based system.
  • canWalkOnSnow -> can_walk_on_snow
  • ability
    the ability properties have been merged into the ability_context property,
    this property is a map ability_id -> ability context.
    • the separate blocking stat has been merged into the block ability.
  • enchantments -> the new system is similar in concept to the old system, but the tags/ids have changed as mojang adopted a similar system
  • fake_enchant -> fake_enchantments