Compass and Clocks

Discussion in 'Spigot Plugin Development' started by Leniency, Aug 3, 2016.

  1. Is it possible to set the time of day on a clock to not follow the actual time, but be permanently set to a time of my choice?
    Same with compasses. I want to know if there is a way to make the compass stay on a certain point instead of changing when the user looks around.
  2. You can set the compass target to a specific location. If you're wanting to lock the orientation then you would need to constantly set it to a new location relative to the player each tick.

    As for the clock, not sure but it'd be easy to look up in the javadocs. I rarely even bother using the item in the first place.
  3. Ok, how would I set the location? (Java doc)