Track name, dimension, add addressable commands

This commit is contained in:
2020-12-13 05:31:09 +00:00
parent f2cb61c4bc
commit d86c21fead
3 changed files with 148 additions and 103 deletions
+9 -3
View File
@@ -480,11 +480,17 @@ class SleepWithBedStates:
return None
def init(self):
if self.g.time >= 12000:
self.state = self.select_bed
else:
if self.g.time < 12000:
print('Aborting sleep, not night')
self.state = self.cleanup
return
if self.g.dimension != 'overworld':
print('Aborting sleep, not in overworld')
self.state = self.cleanup
return
self.state = self.select_bed
def select_bed(self):
if self.g.game.select_item(items.BED_IDS):