lindsemmo Posted June 12, 2022 Share Posted June 12, 2022 Hi guys, Im learning to make my first script with Intellij. There are some lines that im just completely unsure of. If anyone has a very simple miner that i could look at to learn from that would be extremely helpful. Im not after a huge detailed script. Just the basics to mine some ore. Thanks. Quote Link to comment Share on other sites More sharing options...
Gunman Posted June 12, 2022 Share Posted June 12, 2022 5 hours ago, lindsemmo said: There are some lines that im just completely unsure of. Why not post the unsure lines and maybe we can help with that Quote Link to comment Share on other sites More sharing options...
Rays Posted June 12, 2022 Share Posted June 12, 2022 8 hours ago, lindsemmo said: Hi guys, Im learning to make my first script with Intellij. There are some lines that im just completely unsure of. If anyone has a very simple miner that i could look at to learn from that would be extremely helpful. Im not after a huge detailed script. Just the basics to mine some ore. Thanks. Do post screenshots of lines that may give you trouble or any error you encounter while running it! Quote Link to comment Share on other sites More sharing options...
lindsemmo Posted June 13, 2022 Author Share Posted June 13, 2022 Well for starters. Im not sure how to not interact with rocks that have no colour. Quote Link to comment Share on other sites More sharing options...
Gunman Posted June 13, 2022 Share Posted June 13, 2022 25 minutes ago, lindsemmo said: Well for starters. Im not sure how to not interact with rocks that have no colour. Doing this won't work? https://osbot.org/forum/topic/88389-mining-rocks-with-ore-no-ids/ Quote Link to comment Share on other sites More sharing options...
lindsemmo Posted June 13, 2022 Author Share Posted June 13, 2022 58 minutes ago, lindsemmo said: Well for starters. Im not sure how to not interact with rocks that have no colour. Hey amazing!!! Thanks. However with this line public boolean hasOre(final Entity rockEntity); { im getting: illegal start of expression. Quote Link to comment Share on other sites More sharing options...
Gunman Posted June 13, 2022 Share Posted June 13, 2022 1 hour ago, lindsemmo said: Hey amazing!!! Thanks. However with this line public boolean hasOre(final Entity rockEntity); { im getting: illegal start of expression. Well look at the line, do you not see what is wrong that you added to the code? Quote Link to comment Share on other sites More sharing options...
lindsemmo Posted June 13, 2022 Author Share Posted June 13, 2022 43 minutes ago, Gunman said: Well look at the line, do you not see what is wrong that you added to the code? No sorry, im very new to this. Still learning and doing as much reading as i can. Quote Link to comment Share on other sites More sharing options...
Gunman Posted June 13, 2022 Share Posted June 13, 2022 38 minutes ago, lindsemmo said: No sorry, im very new to this. Still learning and doing as much reading as i can. Well you didn't copy the code right and for some reason added a ; where it shouldn't be Quote Link to comment Share on other sites More sharing options...
lindsemmo Posted June 13, 2022 Author Share Posted June 13, 2022 2 hours ago, Gunman said: Well you didn't copy the code right and for some reason added a ; where it shouldn't be Oh i see! Didnt see that. I removed it but i still have the same error Quote Link to comment Share on other sites More sharing options...
Rays Posted June 13, 2022 Share Posted June 13, 2022 5 hours ago, lindsemmo said: Oh i see! Didnt see that. I removed it but i still have the same error Let's see more of your code than just a single line, as errors may occur on lines but are based on other lines of code. Quote Link to comment Share on other sites More sharing options...