mojira.dev
MC-303160

In 25w41a, you could remove `minecraft:knockback` using `set` and `negative values` under your requierements, but on the latest snapshot you can`t.

This is my code. It worked before the fix/”bug”

{
  "anvil_cost": 2,
  "description": {
    "translate": "enchantment.runes.familiarity"
  },
  "effects": {
    "minecraft:damage": [
      {
        "effect": {
          "type": "minecraft:set",
          "value": 0
        },
        "requirements": {
          "condition": "minecraft:any_of",
          "terms": [
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Sitting:1b}"
              }
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Sitting:0b}"
              }
            }
          ]
        }
      }
    ],
    "minecraft:knockback": [
      {
        "effect": {
          "type": "minecraft:set",
          "value": -1000000
        },
        "requirements": {
          "condition": "minecraft:any_of",
          "terms": [
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Sitting:1b}"
              }
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Sitting:0b}"
              }
            }
          ]
        }
      }
    ]
  },
  "max_cost": {
    "base": 27,
    "per_level_above_first": 0
  },
  "max_level": 1,
  "min_cost": {
    "base": 16,
    "per_level_above_first": 0
  },
  "slots": [
    "mainhand"
  ],
  "supported_items": "#minecraft:enchantable/weapon",
  "weight": 6
}

I won’t drop records because I can’t return to 25w41a.

Comments 1

We do not have enough information to find the cause of this issue.

Please record a video of the difference in behavior between 25w41a and 25w42a and attach it to this report.
If you are on Windows, you can use Windows+Alt+R to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift+Command+5 to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Void

(Unassigned)

Unconfirmed

(Unassigned)

25w42a

Retrieved