2 Part Question:

Firstly, I'm trying to make a random death message system and I need some help with some things...

Here is the steps of my logic:

  1. function which starts the game initiates the function deathmsg_toggleon
  2. deathmsg_toggleon sets a scoreboard to 1 and triggers function deathmsg_if
  3. deathmsg_if checks if the scoreboard is 1 and if so triggers the function deathmsg_randomiser
  4. deathmsg_randomiser icba to explain but i've attached all the files below

basically I want to know if what I'm going for will work I will also put deathmsg_if in tick.json and setup the scoreboard to check for deaths

the second question is how do I use player names in the context of deathmsg_randomiser replacing where I ve put "player"

Continue to help post