Bug Verified

Condition 'worldtime' doesn't work

#1468 opened by Unknown 5 years ago

Unknownreported this bug

Summary

The condition worldtime doesn't work at all. It always evaluates as false.

Steps to reproduce

Add the following skill to a mob, and set the time of day between 0-12000 ticks.

Sunburn:
 Conditions:
 - worldtime{t=0to12000} true
 Skills:
   - damagepercent{percent=0.5;ia=true;pk=true} @self
   - effect:particles{particle=flame;amount=120;hS=.4;vS=.6} @self

Current behavior

The condition always returns false and never executes the skill regardless of the time of day.

Intended correct behavior

The condition should return true within the specified range of ticks, in this case 0 to 12000.

Server log file

https://pastebin.com/YpvFyATz

Debug log snippet

https://pastebin.com/VZT0qPzM

Proposed fixes

Don't know, maybe need to specify which world to check the time in?

Unknowncommented

I have tested this with @Ns5x in a ticket on the discord and directed him here to make a bug report as I was able to fully replicate this issue. Making sure that the gamerule for doDayLightCycle was true on my server i setup a condition similar to the one that ns5x has provided. i tried conditions, targetconditions, triggerconditions, and even tried worldconditions just incase >.< none of them worked it always returned false. I made sure to use /time set 0 and /time to see the time ticks.

Sign in to join the discussion.