def create_server_decorators(self) -> List[Handler]: return [ handlers.NavigationDecorator(max_randomized_radius=64, min_randomized_radius=64, block='log', placement='surface', max_radius=8, min_radius=0, max_randomized_distance=8, min_randomized_distance=0, randomize_compass_location=True) ]
def create_mission_handlers( self) -> List[minerl.herobraine.hero.AgentHandler]: mission_handlers = [ handlers.EpisodeLength(6000 // 20), handlers.RewardForTouchingBlock({"diamond_block", 100.0}), handlers.NavigateTargetReward(), handlers.NavigationDecorator(min_radius=64, max_radius=64, randomize_compass_target=True) ] if self.dense: mission_handlers.append( handlers.RewardForWalkingTwardsTarget( reward_per_block=1, reward_schedule="PER_TICK")) return mission_handlers