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

The 'seconds' parameter of /effect is using game-ticks instead of seconds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 15w43b
    • None
    • New launcher, so Java supplied by launcher.
    • Unconfirmed

      /effect works as following:
      /effect <player> <effect> [seconds] [amplifier] [hideParticles]

      In the latest snapshot, the 'seconds' parameter isn't handled as seconds, but as game-ticks.

      How to reproduce:

      /effect @p minecraft:speed 100 1 true

      What I expected to happen:

      It would give me Swiftness II for 100 seconds.

      What actually happened:

      It gave me Swiftness II for 5 seconds.

      Why? In 1 second, there are 20 game-ticks. 100/20 = 5 seconds, meaning that it handles the 'second' parameter as game-ticks, and not as seconds.

            Unassigned Unassigned
            semx11 Semx11
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: