Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-275851

diameter in teleport_randomly consume effect is ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w35a
    • 24w34a
    • None
    • Confirmed
    • Commands, Items
    • Normal
    • 1287154
    • Expansion B

      Summary
      diameter in minecraft:teleport_randomly consume effect (specified with consumable item component's on_consume_effects is ignored. No matter which value is provided, the game always uses the default of 16 blocks.

      Steps to Reproduce

      1. Run the following command:
        /give @s stick[minecraft:consumable={on_consume_effects:[{type:"minecraft:teleport_randomly",diameter:1.0f}]}] 64
        
      2. Eat the stick

      Expected Result
      You teleport within 1 block radius.

      Actual Result
      You teleport within 16 block radius.

            kingbdogz [Mojang] Brandon Pearce
            apple502j apple502j
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: