Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-43393

Instant effects use seconds instead of ticks when used with /effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.15.0.51 Beta
    • 1.13.0.1 Beta, 1.14.0.2 Beta, 1.13.0.9 Beta, 1.13.0.6 Beta, 1.12.0.2 Beta, 1.11.0.10 Beta, 1.9.0, 1.10.0, 1.13.0.4 Beta, 1.13.0.2 Beta, 1.12.0, 1.14.0
    • None
    • Community Consensus
    • Windows

      The bug

      Instant effects (namely instant health, instant damage, and saturation) are intended to be applied, well, instantly – for a single tick. They have an immediate effect then disappear, not even noticeable on the effects pane. This works fine for drinkable/splash potions, etc.

      However, when applied with /effect, the time is treated as seconds, causing the effect to be applied for 20 times longer than intended. This makes it impossible to apply an instant effect for the intended amount of time, causing instant damage to be always fatal and instant health to fully heal you, regardless of the amplifier selected.

      Note that treating time as seconds is intended for non-instant effects.

      How to reproduce

      In survival mode, run the following command:

      /effect @a instant_damage 1 0
      

      Expected Behavior: You instantly take three hearts of damage (because amplifier 0 was specified).
      Actual Behavior: You take four separate hits of three hearts and die.

            tryashtar [Mod] tryashtar
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: