Skip to content

Empty tag cannot be datagenned #1146

@Robotgiggle

Description

@Robotgiggle

Minecraft version

1.20.1

Hex Casting version

0.11.3

Issue description

The cannot_modify_cost tag stores action IDs that should not be affected by things that modify media cost. By default, the tag is empty, since Hex Casting itself does not have any patterns that could cause problems if their costs were changed - it's intended for use by addon developers.

However, it seems like there may not be a way to datagen empty action tags. As far as I can tell, the datagen code for action tags is found here, but this creates the tags by putting things into them. Furthermore, if the tag JSON for cannot_modify_cost is present in the datagen folder when datagen is run, it gets deleted.

The current solution as of #1080 is just to put the cannot_modify_cost tag in src/main/data rather than src/generated/data, but this means it's separated from all the other action tags. If there's some way to properly datagen an empty action tag, that would be much better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs investigationoptimizationImprovement to existing features or performance (no new features or design work)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions