Hi! I am trying to incorporate a survival challenge in which each student needs to eat 3 times a day (preferably something hearty...would actually be ideal if we could link it to how many hearts they have filled) in order to survive, and would like some help doing this.
I am very familiar with Python, but not with command blocks. I have thought to do something involving a dictionary that keeps a variable for each student, which increases each time that student eats. Then at the end of the day, their player can be killed off if they have not eaten enough, and the variables can reset for the next day.
One issue with doing this in python is that I don't think I would be able to open the coding environment without all the variables resetting...
Would anyone be able to help??
Please sign in to leave a comment.