Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The function "Set enchantments" doesn't accurately display an example for books #473

Open
Tholleman opened this issue Feb 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Tholleman
Copy link

Take the following loot table example:

{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:book",
          "functions": [
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:lure": 3
              }
            }
          ]
        }
      ]
    }
  ]
}

In Minecraft, this will generate an enchanted book with Lure III as a stored enchantment.
The example item in the generator creates a glowing book. It probably gives the book an nbt with {Enchantments:[{id:"minecraft:lure",lvl:3}]} instead of {StoredEnchantments:[{id:"minecraft:lure",lvl:3}]}. That would be correct for other items but books are a special case.

@misode misode added the bug Something isn't working label Feb 25, 2024
@misode misode self-assigned this Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants