-
Recently Browsing
No registered users viewing this page.
-
Posts
-
Lets start here: if(facing != Down || facing != UP) lets assume that facing is equal to UP and do a replacement to see what happens when the code is run. if(UP != DOWN || UP != UP) obviously the first one is false and the second one is true. if(false || true) Now we simplify. False or True is true, because we only need one side to be true for the whole statement to be true. if(true) If we repeat when facing equals DOWN instead... if(DOWN != DOWN || DOWN != UP) if(false || true) if(true) What about a different direction? Say...EAST? if(EAST != DOWN || EAST != UP) if(true || true) if(true) All possible variations will resolve to if(true) because a value cannot both be equal to DOWN and UP at the same time. Oh boy. That's going to be a nightmare to figure out where all the bits are. Because when its on the floor or ceiling, the other "half" of the block is going to not be above or below.
-
By LorenzoPapi · Posted
That's strange. This works for me. Don't care about comments, they're just sentences without any logic sometimes. One thing I don't understand. Why would always one condition be true? Does Minecraft says that if FACING isn't DOWN, it is UP? Maybe it's something I've missed. I'll change this tomorrow, I'm really tired. Anyways, maybe I haven't explained well. This block's placement acts like a bed on the floor, kinda like a door on the sides of a block and like an "upside-down" bed under the roof of a block. But I can't destroy both the parts of the block when it's placed on the floor and under the floor. -
By anothertime · Posted
I usually rebuild the module with build\build module but I've also tried run\reload changes after looking for a solution on the web but the result is the same -
By DaemonUmbra · Posted
Are you running the build manually with a gradle task or are you clicking run -> reload changed classes?
-
-
Topics
-
Who's Online (See full list)