Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-275021

SetComponentsFunction datagen cannot set multiple components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21
    • None
    • NeoForge (code not changed from vanilla)
    • Plausible
    • Loot tables

      The `SetComponentsFunction` loot table function has a private constructor for a `DataComponentPatch`, which can contain multiple data components.

      However, the only public way to create this function is via the `setComponent` static method, which only accepts a single component.

      This makes it impossible to use this function to generate more than one component on an item in a concise manner; thus it's possible to manually write a loot table JSON that's impossible to datagen.

            Unassigned Unassigned
            Mirality Gavin Lambert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: