mojira.dev
MC-91165

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

/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.

Related issues

Comments

migrated

Speed still gives me 100 seconds. Are you talking about MC-19648?

migrated

Yeah, it happened with saturation.. Thought it was a bug since the snapshot. Just as a random example I used speed, should've been more precise 🙂 thx for clearing that up

migrated

(Unassigned)

Unconfirmed

Minecraft 15w43b

Retrieved