mojira.dev
MC-303914

When using apply_impulse in a tick effect to detect the dimension void and facing up/down, makes it not apply, but when facing stright again thorws you millions of blocks up

Steps to reproduce:

  1. Use the enchantment i sent below

  2. Try it facing straight to see it works, then try facing up/down and then face straight (all this when falling in the void)

  3. Watch you going millions of blocks up
    (If the apply impulse were applied when facing up and down, this wouldnt happen)

{
  "anvil_cost": 1,
  "description": "Voidwalker",
  "effects": {
    "minecraft:tick": [
      {
        "effect": {
          "type": "minecraft:apply_impulse",
          "direction": [
            0,
            2,
            0
          ],
          "coordinate_scale": [
            0,
            1,
            0
          ],
          "magnitude": 0.8
        },
        "requirements": {
          "condition": "minecraft:all_of",
          "terms": [
            {
              "condition": "minecraft:location_check",
              "offsetY": 384,
              "predicate": {}
            },
            {
              "condition": "minecraft:inverted",
              "term": {
                "condition": "minecraft:location_check",
                "predicate": {
                  "block": {}
                }
              }
            }
          ]
        }
      }
    ]
  },
  "max_cost": {
    "base": 1,
    "per_level_above_first": 0
  },
  "max_level": 1,
  "min_cost": {
    "base": 1,
    "per_level_above_first": 0
  },
  "slots": [
    "feet"
  ],
  "supported_items": "#minecraft:enchantable/foot_armor",
  "weight": 2
}

Environment

As you can see in the attachment, when facing straight it works, when facing up/down you die. but when facing up/down and then straight before dying, you literally fly.

Attachments

Comments 1

Thank you for your report!
However, this issue is Invalid.

This report does not describe a bug.

Your enchantment’s coordinate_scale field multiplies all impulse you would get on the X and Z axes by 0, so facing straight down and having an impulse toward ^ ^2 ^ (two blocks toward the direction your head is facing, which is forward) applied to you has no effect since it’s nullified by the coordinate_scale field. Getting shot millions of blocks up happens because once you pass Y=319, you are now outside the world’s bounds (in the void), therefore your enchantment goes into effect, like it does when you’re under Y=-64.

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)

25w44a

Retrieved