I found out that this doesn't work because it's not a Block but a Block[]
There's an extremely easy solution to that, but I'm getting a little tired of people with no Java experience sorry. Hint: Mojang are dumb. Look at the method name and the code.
EDIT:
Ok I'm dumb after looking at it (I didn't found the isBed as It's in the Block and I searched in the Bed, so I looked at my method again)
I just found out that isBed is a boolean, so it can't return a block... I think that's the thing...
It should return true or false... I changed it by true and it works...
Hey at least you figured it out, I'm not disappointed! I just thought I need to be a little less helpful than telling people what to do, otherwise they ain't gonna learn nuffin'
Yeah, well It's not like If I'm really advanced in Java, I could never make Minecraft myself...
But I could kinda say that I know, the basics, maybe a bit more than the basics...
I just know how Java works... I once made a Zelda Boss battle in Java, it was my first big project I did, and it was ok...
But I learn Java by making/looking at codes...
Thanks! This really helped a lot!
EDIT: Now i can't sleep like last time, I added the additional code that was in the other post, but I still can't...
I found out that this doesn't work because it's not a Block but a Block[]
I am most likely inactive on this account! If you want to contact me, here's my Twitter @PandawanMT.
Check out my website!
So close to releasing my new map! Gonna beta test it next week... Probably coming out in two weeks! Follow My Twitter for more info!
There's an extremely easy solution to that, but I'm getting a little tired of people with no Java experience sorry. Hint: Mojang are dumb. Look at the method name and the code.
EDIT:
Ok I'm dumb after looking at it (I didn't found the isBed as It's in the Block and I searched in the Bed, so I looked at my method again)
I just found out that isBed is a boolean, so it can't return a block... I think that's the thing...
It should return true or false... I changed it by true and it works...
Sometimes I feel like I'm stupid...
I am most likely inactive on this account! If you want to contact me, here's my Twitter @PandawanMT.
Check out my website!
So close to releasing my new map! Gonna beta test it next week... Probably coming out in two weeks! Follow My Twitter for more info!
But I could kinda say that I know, the basics, maybe a bit more than the basics...
I just know how Java works... I once made a Zelda Boss battle in Java, it was my first big project I did, and it was ok...
But I learn Java by making/looking at codes...
I am most likely inactive on this account! If you want to contact me, here's my Twitter @PandawanMT.
Check out my website!
So close to releasing my new map! Gonna beta test it next week... Probably coming out in two weeks! Follow My Twitter for more info!