Advertisement
iku55

SimpleClock 1.1

Apr 12th, 2020
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. # SimpleClock バージョン1.1
  2. # 作成者 iku55
  3. # 時計を持つだけで時刻を確認できます。あんなわかりにくい時計とはお別れだ。
  4.  
  5. on right click with clock:
  6. if time of player's world is between 6:00 and 12:00:
  7. set {_color} to "&a&l"
  8. else if time of player's world is between 12:00 and 13:00:
  9. set {_color} to "&b&l"
  10. else if time of player's world is between 13:00 and 19:00:
  11. set {_color} to "&6&l"
  12. else if time of player's world is between 19:00 and 22:00:
  13. set {_color} to "&1&l"
  14. else:
  15. set {_color} to "&0&l"
  16. message "&a現在の時刻: %{_color}%%time of player's world%"
  17. every 1 seconds:
  18. loop all players:
  19. if loop-player's held item is clock:
  20. if time of loop-player's world is between 6:00 and 12:00:
  21. set {_color} to "&a&l"
  22. else if time of loop-player's world is between 12:00 and 13:00:
  23. set {_color} to "&b&l"
  24. else if time of loop-player's world is between 13:00 and 19:00:
  25. set {_color} to "&6&l"
  26. else if time of loop-player's world is between 19:00 and 22:00:
  27. set {_color} to "&1&l"
  28. else:
  29. set {_color} to "&0&l"
  30. send action bar "&8&l[&a現在の時刻: %{_color}%%time of loop-player's world%&8&l]" to loop-player
  31. # ↓ちらちら出てくる宣伝(?)がムカつくのであれば消してください。
  32. on tool change:
  33. event-player's held item is clock
  34. send action bar "&8&l[&aSimpleClockが有効です。アクションバーに時刻が表示されます。&8&l]" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement