Mojira Archive
MC-275851

diameter in teleport_randomly consume effect is ignored

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.

Fixed

apple502j

[Mojang] Brandon Pearce

2024-08-22, 04:39 AM

2024-08-27, 09:35 PM

2024-08-27, 09:35 PM

3

2

Confirmed

Normal

1287154

Expansion B

Commands, Items

24w34a

24w35a