Skip to content

"- adjust def:DEF mechanism:value" modifies actual object that it represents #58

Description

Using the adjust command on definitions shouldn't modify the real object it represents, and yet - adjust def:DEF mechanism:value seems to do just that.

For reference (made by Morphan):

on player prepares anvil craft item:
- define contents <context.inventory.list_contents>
- define item <[contents].get[1]>
- define repair_material <[contents].get[2].material.name||air>
- if <proc[is_normal_chestplate].context[<[item]>]> && <[repair_material]> == "chest":
    - adjust def:item custom_model_data:1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions