mojira.dev
MC-271637

The enchantment entity effect type "run_command" always runs the command in the overworld

The function run through the `run_command` entity effect type runs in the wrong dimension / always in the overworld.

To reproduce, download the attached datapack and add it to a world. Then follow these steps.

  1. give yourself a pickaxe

  2. enchant this pickaxe with the test enchantment using /enchant @s test:test while holding it in your hand

  3. make sure you're in survival mode

  4. hit a nearby block. Observe how you get teleported to that block.

  5. go through a nether or end portal

  6. hit any block there

  7. observe how you're getting teleported to the corresponding block in the overworld instead.

All the function does is this:

tp @s ~ ~ ~

Attachments

Comments 1

Plagiatus

slicedlime

Community Consensus

Platform

Important

Data Packs, Enchantments

24w18a

24w19a

Retrieved