staioneers robot alias posX r2 alias posY r3 alias posZ r4 alias mineableAmount r5 alias nextXPos r6 alias robot db alias mode r0 s robot Mode RobotMode.None # Calling this will reset the x expiration, # This part is not required staioneers robot How to get it? staioneers robot # Will have AIMEe driving in the same place a lot RestartNextXPosInit: move nextXPos 0 # Called when telling the robot to go mining Initialize: s robot Mode RobotMode.Roam # Do this while mining Roaming: staioneers robot How to dowload it? staioneers robot yield l mode robot Mode beqz mode Initialize # Check if it's full, if so unload beq mode RobotMode.StorageFull Return # Check to make sure it has ore to mine, if not explore l mineableAmount robot MineablesInQueue beq mineableAmount 0 ExploreOut j Roaming staioneers robot How to get it for free? staioneers robot # Called when AIMEe is full and needs to return to drop off ore Return: # Cache previous mining position so it can return here after unloading ore l posX robot PositionX l posY robot PositionY l posZ robot PositionZ # You'll be your own chute input coords here s robot TargetX -2 s robot TargetY 0 s robot TargetZ 24 staioneers robot PasteShr staioneers robot s robot Mode RobotMode.MoveToTarget yield # This function will keep looping until it returns home Returning: yield l mode robot Mode beqz mode Returned j Returning staioneers robot How to use it? staioneers robot # Start unloading once returned home Returned: s robot Mode RobotMode.Unload # This will leave the robot in unloading mode until it switches back to idle, in which case it's done depositing ores Unloading: yield l mode robot Mode beqz mode Leave j Unloading staioneers robot How to dowload it? staioneers robot # Tell the robot to return to its original position before it was full Leave: s robot TargetX posX s robot TargetY posY s robot TargetZ posZ s robot Mode RobotMode.MoveToTarget # Keep looping until either it finds mineables or reaches its original position Leaving: staioneers robot How to dowload it? staioneers robot yield l mineableAmount robot MineablesInVicinity bge mineableAmount 1 Initialize l mode robot Mode beqz mode Initialize j Leaving # This function will tell AIMEe to explore out on the x axis in the postiive direction untill it finds mineables. ExploreOut: add nextXPos nextXPos 10 staioneers robot How to get it? staioneers robot # Set the x Target for the explore position (I use X as an example) ExploreX: s robot TargetX nextXPos s robot Mode RobotMode.MoveToTarget # Explore to a certain place untill it either reaches it or finds mineables # If it reaches it, it will update and tell it to keep going ExploreNow: l posY robot PositionY staioneers robot How to dowload it? staioneers robot l posZ robot PositionZ s robot TargetY posY s robot TargetZ posZ l mineableAmount robot MineablesInVicinity bge mineableAmount 1 RestartNextXPosInit l mode robot Mode beqz mode ExploreOut j ExploreNow staioneers robot