Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
I just stick to using my Raspberry PI 3 model B+. No monthly fees, etc.
Question, where should I put the code?
Just use a Java IDE like IntelliJ or Eclipse.
RageQuits wrote:To all people reading this, as stated on the site, i'll be making an enum of all blocks. Since i'm too dumb to decompile the client, i'm just gonna copy all blocks from my world. But of course i don't have all of them so if you have blocks that i don't (look on the gif below), please contact me. (I'll add you to the contributing list xp)
If you need some testing with blocks: PWAllBlocks
Thanks, will the world get updated each time new blocks are added?
I'm very looking forwords to your Java EE API, RageQuits, I'll use it on a bot once it's done.
Thanks, you can already use it, even though i haven't made the event system, but everything else should work fine.
I've added some examples on the Github Pages page.
Thanks to Coinage i got the world id (PWAllBlocks).
To all people reading this, as stated on the site, i'll be making an enum of all blocks. Since i'm too dumb to decompile the client, i'm just gonna copy all blocks from my world. But of course i don't have all of them so if you have blocks that i don't (look on the gif below), please contact me. (I'll add you to the contributing list xp)
Really looking forward to this API. A good and easy to understand event system will make developing bots so much easier.
Also the block enum could make stuff very easy, although it might be a pain to maintain.
Yeah, not looking forward to making the whole enum but it'll make it a bunch easier to program a bot
Update
You can follow progress and the features i’m adding on the Github Pages page.
Thanks for all the upvotes btw!
Unsure since EEU is gonna be using Websockets, the whole system will change. But i guess i can make it like this.
Translation
I've been mad so many times because i'm suprised you aren't able to make rocks. Why not?
(I love translating his stuff, never know if its correct or not though)
taxes
Here are some basic-basic things i keep track of (keep in mind i just made this very fast without paying attention, so some things can be done easier / shorter / might not make sence);
Also, all these examples are made in Java.
1) Don't just ignore an exception.
Don't
try {
File inputFile = new File(baseDir, "config.yml");
if(!inputFile.exists()) inputFile.createNewFile();
FileUtils.readFileToString(inputFile, Charset.defaultCharset());
} catch (IOException e) {
}
Do
try {
File inputFile = new File(baseDir, "config.yml");
if(!inputFile.exists()) inputFile.createNewFile();
FileUtils.readFileToString(new File("Config"), Charset.defaultCharset());
} catch (IOException e) {
LogManager.getLogger().log(Level.ERROR, String.format("Failed loading configuration file (%s)", e.getMessage(), e));
}
2) Advoid duplicated code. Work with methods.
IntelliJ (Java IDE) is very nice with this and can detect these parts with ease.
(Dumb example but idc )
Don't
double double1 = 3.13,
double2 = 3.15;
System.out.println(double1 > Math.PI);
System.out.println(double2 > Math.PI);
Do
public static void main(String[] args) {
double double1 = 3.13,
double2 = 3.15;
someMethod(double1);
someMethod(double2);
}
private static void someMethod(double in) {
System.out.println(in > Math.PI);
}
3) Work object-oriented, don't always use statics.
I don't really have to explain this. I guess you know what i mean
4) Use lambda's. It always saves space.
Don't
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
@Override
public void run() {
stop();
}
}));
Do
Runtime.getRuntime().addShutdownHook(new Thread(this::stop));
There's a whole lot but i only said these ones because i made these mistakes a whole lot of the time.
https://cdn.discordapp.com/attachments/ … G_0366.JPG
here is my beloved crabby Teague the day I got him. I named him after a dude on a dishonored discord server. the crab is dead now and I miss him a lot because he was so playful and kind. He wasn't afraid of people like Dennis and Fitzpatrick are but that's fine, I love them too all the same.
Aww, sad that he's gone. Stay strong.
You’re one day late
But still - in my opinion - of course ignoring these events is not the best - but - I think that we need to forgive - and move into the future during the present - but with attention of past mistakes.
I agree.
Yeah, it was a big tragedy but its over now, just move on. (my opinion)
RageQuits wrote:LukeM wrote:Anatoly wrote:As you move from PIO, what system will you use, how will the API look like, and will it support Swift, JS, ..?
We'll be making our own API most likely on top of WebSockets, at the start we'll probably only make a JS and a .net core API, but I guess either you could port it yourself, or we might make them for other languages in the futureAh nice, finally a protocol i can port to Java without using an Android library...
I hope I’d be able to port tu lua with http.request
Websockets isn't HTTP? Don't think you can use http.request.
Translation
After an update, prevent people from chatting for 12224 hours so nobody can criticize it
#5001
ERR_NAME_NOT_RESOLVED: This site can't be reached (IP Unknown)
Anatoly wrote:As you move from PIO, what system will you use, how will the API look like, and will it support Swift, JS, ..?
We'll be making our own API most likely on top of WebSockets, at the start we'll probably only make a JS and a .net core API, but I guess either you could port it yourself, or we might make them for other languages in the future
Ah nice, finally a protocol i can port to Java without using an Android library...
As far as i’m aware, there isn’t a PlayerIO library for Lua.
Maybe this is what you’re looking for (don’t have perms to post links so just look up ashtoin’s LuaBot post)?
Status.io isn't just only for websites...?
[ Started around 1734499774.4808 - Generated in 0.245 seconds, 9 queries executed - Memory usage: 1.67 MiB (Peak: 1.91 MiB) ]