Skip to content

Resources and NBT Components

lonefelidae16 edited this page Sep 1, 2026 · 3 revisions

Resources

All files are available under resources/assets directory.

Namespace minecraft

  • items/experience_bottle.json
    • Modifies the item model using condition predicate based on whether it contains the has_xp_amount property in the minecraft:custom_data component.

Namespace xp-orb-extractor

Components

  • Bottle o’ enchanting
    • minecraft:custom_data
      • xp_amount: [Int Value]
        • Specify experience orbs to drop.
      • has_xp_amount: true
        • Used to determine whether to display a custom sprite.

Give command:

/give @s minecraft:experience_bottle[minecraft:custom_data={xp_amount:20,has_xp_amount:true}]

Clone this wiki locally