seyfahni

BetonQuest Town Bell

Jun 24th, 2021 (edited)
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.07 KB | None | 0 0
  1. # Copyright © 2021 Niklas Seyfarth, bendy straw
  2. #
  3. # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  4. #
  5. # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  6. #
  7. # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  8.  
  9. # conditions.yml
  10. time_one: or time_1_am,time_1_pm
  11. time_1_am: realtime 00:01-12:01
  12. time_1_pm: realtime 12:01-00:01
  13. time_two: or time_2_am,time_2_pm
  14. time_2_am: realtime 01:01-12:01
  15. time_2_pm: realtime 13:01-00:01
  16. time_three: or time_3_am,time_3_pm
  17. time_3_am: realtime 02:01-12:01
  18. time_3_pm: realtime 14:01-00:01
  19. time_four: or time_4_am,time_4_pm
  20. time_4_am: realtime 03:01-12:01
  21. time_4_pm: realtime 15:01-00:01
  22. time_five: or time_5_am,time_5_pm
  23. time_5_am: realtime 04:01-12:01
  24. time_5_pm: realtime 16:01-00:01
  25. time_six: or time_6_am,time_6_pm
  26. time_6_am: realtime 05:01-12:01
  27. time_6_pm: realtime 17:01-00:01
  28. time_seven: or time_7_am,time_7_pm
  29. time_7_am: realtime 06:01-12:01
  30. time_7_pm: realtime 18:01-00:01
  31. time_eight: or time_8_am,time_8_pm
  32. time_8_am: realtime 07:01-12:01
  33. time_8_pm: realtime 19:01-00:01
  34. time_nine: or time_9_am,time_9_pm
  35. time_9_am: realtime 08:01-12:01
  36. time_9_pm: realtime 20:01-00:01
  37. time_ten: or time_10_am,time_10_pm
  38. time_10_am: realtime 09:01-12:01
  39. time_10_pm: realtime 21:01-00:01
  40. time_eleven: or time_11_am,time_11_pm
  41. time_11_am: realtime 10:01-12:01
  42. time_11_pm: realtime 22:01-00:01
  43. time_twelve: or time_12_am,time_12_pm
  44. time_12_am: realtime 11:01-12:01
  45. time_12_pm: realtime 23:01-00:01
  46.  
  47. # events.yml
  48. ring_bell: folder ring_bell_one,ring_bell_two,ring_bell_three,ring_bell_four,ring_bell_five,ring_bell_six,ring_bell_seven,ring_bell_eight,ring_bell_nine,ring_bell_ten,ring_bell_eleven,ring_bell_twelve
  49.  delay:2
  50. ring_bell_one: folder ring_bell_locations condition:time_one
  51. ring_bell_two: folder ring_bell_locations condition:time_two
  52. ring_bell_three: folder ring_bell_locations condition:time_three
  53. ring_bell_four: folder ring_bell_locations condition:time_four
  54. ring_bell_five: folder ring_bell_locations condition:time_five
  55. ring_bell_six: folder ring_bell_locations condition:time_six
  56. ring_bell_seven: folder ring_bell_locations condition:time_seven
  57. ring_bell_eight: folder ring_bell_locations condition:time_eight
  58. ring_bell_nine: folder ring_bell_locations condition:time_nine
  59. ring_bell_ten: folder ring_bell_locations condition:time_ten
  60. ring_bell_eleven: folder ring_bell_locations condition:time_eleven
  61. ring_bell_twelve: folder ring_bell_locations condition:time_twelve
  62. ring_bell_locations: folder ring_bell_town,ring_bell_elsewhere
  63. ring_bell_town: notify io:sound sound:block.bell.use soundvolume:16 soundlocation:$town_location$
  64. ring_bell_elsewhere: notify io:sound sound:block.bell.use soundvolume:16 soundlocation:$elsewhere_location$
  65.  
  66. # main.yml
  67. static:
  68.   '00:00': play_bell
  69.   '01:00': play_bell
  70.   '02:00': play_bell
  71.   '03:00': play_bell
  72.   '04:00': play_bell
  73.   '05:00': play_bell
  74.   '06:00': play_bell
  75.   '07:00': play_bell
  76.   '08:00': play_bell
  77.   '09:00': play_bell
  78.   '10:00': play_bell
  79.   '11:00': play_bell
  80.   '12:00': play_bell
  81.   '13:00': play_bell
  82.   '14:00': play_bell
  83.   '15:00': play_bell
  84.   '16:00': play_bell
  85.   '17:00': play_bell
  86.   '18:00': play_bell
  87.   '19:00': play_bell
  88.   '20:00': play_bell
  89.   '21:00': play_bell
  90.   '22:00': play_bell
  91.   '23:00': play_bell
Add Comment
Please, Sign In to add comment