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

Mob Effects should allow negative amplifier

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.12.2
    • None
    • Unconfirmed

      Using the vanilla effect command, you can give a player a player a negative amplifier by intentionally causing it to overflow using:

      /effect @p minecraft:jump_boost 30 253

      This gives a nice negative jump boost effect making the player not jump as much (and 128 will lock the player to the ground)

      However, doing this by potion effects/tipped arrows is not possible (and maybe potentially was in the past according to: https://www.planetminecraft.com/blog/how-to-make-players-unable-to-jump/ )

      As the MobEffect class checks that the amplifier is > 0, else use 0.

      The code should not be bounding this to 0 min, and should show jump boost in red if < 0, so that tipped arrows and potions can match behavior of whats possible with the effect command.

       

            Unassigned Unassigned
            aikar Aikar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: