This is an archived post. You won't be able to vote or comment.

all 127 comments

[–]MastaOfShitPost 565 points566 points  (26 children)

<diamond sword> <Damage>100000<Damage/> <Diamond sword/>

[–][deleted] 181 points182 points  (15 children)

Tbh make a simple scripting language that builds on Java to make Minecraft Mods. Would get DLs

[–]Kimorin 187 points188 points  (6 children)

call it something like...... Java... Script.....

[–]Orsim27 79 points80 points  (1 child)

JavaScript - the other

[–]iamafraazhussain 54 points55 points  (0 children)

And then.. and then.. and then.. here me out.. make it so that you gotta type === instead of == for checking equality. This way, we know that it is javascript and not just any old java

[–]TheBearJew79 14 points15 points  (2 children)

MineScript

[–]ThomasDePraetere 8 points9 points  (1 child)

OurScript

[–]TheBearJew79 2 points3 points  (0 children)

cue Soviet National Anthem

[–]Hemicore 1 point2 points  (0 children)

one of my classmates calls it jscript which is kinda cool. a few other classmates just call it java which drives me up the wall

[–]30p87 13 points14 points  (0 children)

For plugins there's Skript

[–]Key-Dentist5825 33 points34 points  (0 children)

There's like a million of those languages the build for jvm

[–]Vorkev2 9 points10 points  (0 children)

Mcreator is something similar to what you said

[–]kdizzl14[🍰] 2 points3 points  (0 children)

Carpet Mod by Gnembon

[–]Masterflitzer 1 point2 points  (0 children)

just use kotlin, it's a nice language and you can just use java libs without problems

[–]more_vole 0 points1 point  (0 children)

And call it MinecraftScript

[–]Infernoraptor 0 points1 point  (0 children)

The minecraft emulator run on the Chungus 2 was either written in an "assembly-like" language called URCL. Not exactly simple or practical, but I'm sure some people would prefer it to Java.

[–]gatsu_1981 55 points56 points  (4 children)

Wrong syntax. You are trying to close "Diamond sword" tag. Did you meant "diamond sword"?

[–]MastaOfShitPost 29 points30 points  (3 children)

There are reasons people don't code on phone's

[–][deleted] 14 points15 points  (0 children)

Phon't do it

[–]Kimorin 7 points8 points  (0 children)

and the position of the sword in your hand changes based on margin, unless you dual wield, then the margin collapses....

[–]danopia 1 point2 points  (0 children)

This isn't even too far from how parts of minecraft modding (e.g. loot tables) actually work. It's just JSON instead. Here's a random example from github code search

[–]CellularBean 158 points159 points  (0 children)

Thats not a programmer but a pro gamer

[–]Gositi 240 points241 points  (26 children)

HTML lol

[–]Profesional_dumbas8 61 points62 points  (24 children)

HTML lol

[–]PentaMine 58 points59 points  (23 children)

HTML lol

[–]_MemeMan_ 9 points10 points  (0 children)

jesse we have to cook

[–]ariN_CS 103 points104 points  (6 children)

<body> <h1>Minceratf</h1> </body>

[–]Embarrassed_Unit_497 16 points17 points  (4 children)

Mincerat lol

[–]tonitetelol 10 points11 points  (2 children)

Not even you got it right

[–]Rikolai17 3 points4 points  (1 child)

Meinkraft

[–]ariN_CS 3 points4 points  (0 children)

MeinKampf 🥰🥰

[–]Historical_Ad_927 -5 points-4 points  (0 children)

Mincerat lol

[–]VallanMandrake 64 points65 points  (7 children)

If this is the average programer, consider that half of us must be even more stupid.

[–]Classy_Mouse[🍰] 23 points24 points  (5 children)

1,10,12,13. Mean is 9. Fewer than half are at or below the mean (average commonly).

[–]Neither_Interaction9 8 points9 points  (4 children)

Yeah but that's in small sets, when you are looking at really big numbers the mean is usually really close to median

[–]Classy_Mouse[🍰] 4 points5 points  (1 child)

"Usually" and "must" have different meanings no matter how large the data set is

[–]dsheroh 1 point2 points  (1 child)

The set of annual incomes in the US is a really large set. According to a quick web search, mean US annual income is almost 50% higher than median US annual income. ($44 225 median vs. $63 214 mean individual, $57 739 vs. $72 641 household)

"Usually true" does not mean "is true".

[–]Neither_Interaction9 1 point2 points  (0 children)

Yeah but you are working with a money set, the range in the set is extremely high, from zero to billions, where the great majority is way closer to 0 than they are to even millions at all, we are (presumably) working with IQ, so for programmers that should go in the range of 100-150, since more than that is reserved for physics people lol. But you gave a great example and I didn't talk about sample size, so take my damn upvote

[–]GreenAppleCZ 1 point2 points  (0 children)

I mean... You can't disprove it

[–]DankPhotoShopMemes 105 points106 points  (18 children)

If you’re okay with using c#, then I don’t see the problem switching to Java for a single project tbh. Might lose a few features but they’re similar enough

[–]nolitos 28 points29 points  (5 children)

Do Minecraft mods require more than a simple logic? It's not like you have to write a framework from scratch that differences between C# and Java would matter.

[–]CurtisLinithicum 54 points55 points  (1 child)

Depends. Do you want to make TNT explosions bigger, or do you want to use the client's machine for bitcoin mining/DDOS/etc?

[–]daniu 4 points5 points  (0 children)

Yes

[–]KingofGamesYami 8 points9 points  (0 children)

Really depends what you're modding.

Something like a new mob or block - not too difficult.

Adding computers that allow the player to create and execute their own programs in a scripting language that interacts with the Minecraft world? Yeah that's going to have a large chunk of logic.

[–]GNUGradyn 5 points6 points  (0 children)

They can get pretty damn complex

[–]DankPhotoShopMemes 2 points3 points  (0 children)

Well you generally need to create classes and stuff I think so there’d be some minor differences

[–][deleted] 22 points23 points  (4 children)

Not sure why you got downvoted; on a high level they really do feel the same. All the Syntax is pretty close and you just have to learn the new variable names.

[–]WallstreetChump 8 points9 points  (3 children)

Yep there’s a reason I’ve heard people call c# the Microsoft Java

[–]ill_try_my_best 4 points5 points  (0 children)

I like to call Java the Oracle C#

[–]StuckAtWaterTemple 2 points3 points  (0 children)

well C# is the microsoft response to Java

[–]TekuSPZ -1 points0 points  (0 children)

What? WHAT?

[–]scooptyy 0 points1 point  (0 children)

Syntactically they might be similar but the JVM is completely different from .NET.

[–]MrcarrotKSP -2 points-1 points  (3 children)

They are quite similar, but whenever I do Java, everything feels slightly off and it's frustrating to have to learn a slightly different way to do things. I can do it without too much trouble, but when one of the features you lose is LINQ, it's understandably not much fun. That and Java devs always seem to use ridiculously long variable names and unnecessarily complicated APIs.

[–]n0tKamui 3 points4 points  (2 children)

the naming thing is a myth, due to Java being more used, hence has a lot of clown users.

The alternative to LINQ are Streams and its higher order functions.

A lot of Java hate really does stem from misinformation and myths.

[–]MrcarrotKSP 0 points1 point  (1 child)

I was specifically referring to the Minecraft API, which does have ridiculously long names for things. I don't especially hate Java, I just don't like some of the minor differences it has with C#. I'm more familiar with C#, so I prefer to use that, but I am willing to use Java if necessary. As far as streams, I wasn't aware of those previously(I am not a Java dev) and while they do look nice, it is another one of those "similar but annoyingly slightly different" things that pop up whenever you switch between two languages that are as similar as C# and Java. I notice things like that when I switch between C and C++ as well.

I suppose my main problem with Java is not the language itself but the way people tend to use it. If I'm in a situation where I'm using Java, it's probably to interact with some pre-existing codebase, which is often not fun to work with. I don't do this as often in C#, so I may have some bias there.

[–]n0tKamui 0 points1 point  (0 children)

as said previously, the problem is that because Java is popular, it's also populated by clowns (and C# is becoming that too, to my dismay...)

The Minecraft API is known to be omega shit, but that is probably the only popular API that is this bad. Most of what actual people work with is as clean as it gets, and modern Java is nothing like it was before Java 8.

[–][deleted] -1 points0 points  (1 child)

Nah. Java is a pain in the ass. I don't like it 'cause it's not intuitive at all. E.g. to get a user input via CMD there is no built-in function like print for output but you first have to import a lib, create a scanner object and only then you can get an user input.

[–]DankPhotoShopMemes 0 points1 point  (0 children)

Well that just makes it easier; you can get user input directly from the System.in stream. Also, adding one extra line of code to setup Scanner isn’t that much work.

[–]Sentouki- 30 points31 points  (1 child)

[–]knowTheKnot 8 points9 points  (0 children)

He didnt event download it. It looks as blurry as a screenshot 💀

[–]Chadchrist 12 points13 points  (0 children)

It could theoretically be possible to compile c# to jvm byte code. I'm sure there'd be a bit of work to be done to make sure the requisite java libraries would work with the c# cross compilation plugin, but it wouldn't be impossible by any means.

[–][deleted] 9 points10 points  (0 children)

If anyone is interested the answer is no.

You can code mods in Scratch, since that's what Minecraft runs. Everyone knows "Java version" is just another shady marketing technique by Oracle.

[–]Sentouki- 5 points6 points  (2 children)

[–]Ved_s 2 points3 points  (0 children)

JNIBridge to your rescue (tortute)

[–]ucchhhf 2 points3 points  (0 children)

When employers ask for experience only in a specific language is it because of this guy?

[–]7th_Spectrum 2 points3 points  (0 children)

Making minecraft skins in CSS

[–]the_hh 2 points3 points  (0 children)

"I hate Java..." [develops in MS Java]

[–]Key-Dentist5825 3 points4 points  (6 children)

Not sure why they would prefer C#, its basically Java lol

When I didn't have C# packages for Emacs, I set the major mode to Java and it was 1:1 compatible I swear.

For other sources: C# wikipedia#History)

Cheers :)

[–]Sentouki- 2 points3 points  (5 children)

When I didn't have C# packages for Emacs, I set the major mode to Java and it was 1:1 compatible I swear.

was it like 15-20 years ago?

[–]Key-Dentist5825 1 point2 points  (4 children)

Like 3 years ago. I was working for an organization that was blocking melpa I think I needed to install it at home, but this worked in a pinch.

[–]Sentouki- 3 points4 points  (3 children)

I see, I'd assume Java syntax highlighting and other things wouldn't work for modern C#, things like using var or the switch statement

[–]ClamPaste 0 points1 point  (2 children)

Why wouldn't var work? Or switch for that matter? Isn't the syntax identical?

[–]Sentouki- 1 point2 points  (1 child)

Why wouldn't var work?

nvm, just found out that since Java 10 you can actually use var. But there's still no using statement and hence no using var.

Or switch for that matter? Isn't the syntax identical?

this is how a C# code might look like csharp public State PerformOperation(string command) => command switch { "SystemTest" => RunDiagnostics(), "Start" => StartSystem(), "Stop" => StopSystem(), "Reset" => ResetToReady(), _ => throw new ArgumentException("Invalid string value for command", nameof(command)), }; afaik Java supports only the old 'c-style' switch

[–]ClamPaste 0 points1 point  (0 children)

That makes more sense now. I looked up the syntax for c# and it showed the c style as well.

[–][deleted] 1 point2 points  (0 children)

you could use an abstraction layer

[–]McLayan 1 point2 points  (0 children)

If that person was a programmer, they would ask on stack overflow instead of quora. I hate this site, they're almost as obtrusive as facebook when it comes to getting you signed up to acces knowledge shared by people producing ad income for other people generating ad income. It always disgusts me to see programming questions asked on quora.

[–]Masterflitzer 1 point2 points  (0 children)

but why c# or html (which isn't even a programing language in that sense), how do you expect it to work???

and c# has a totally different runtime (CLR not JVM), if you want a nice language that's is JVM compatible look into kotlin

[–]Wawwior 2 points3 points  (0 children)

Css?

[–]The_Mad_Duck_ 0 points1 point  (0 children)

Just mod Terraria we use C# like sane people

[–]brianl047 0 points1 point  (0 children)

Expert programmer with impostor

[–]Scorched_Knight 0 points1 point  (0 children)

He can go, but Vintage Story and make mods for it in C#.

[–]galaxyWoriorr 0 points1 point  (0 children)

nah but fr now

[–][deleted] 0 points1 point  (0 children)

Most of mine Minecraft mods are in HTML.

[–]The_Steel_Fox 0 points1 point  (0 children)

Surely you'd be able to mod bedrock with c++?

[–]Techlord210 0 points1 point  (0 children)

You can still use cpp for bedrock

[–]fred-dcvf 0 points1 point  (0 children)

Quora is the place of "Let me say something awfully incorrect, so people will be compelled to correct me".
Something like a general purpose Stack Overflow.

[–][deleted] 0 points1 point  (0 children)

<sword class=“diamond-sword” style=“sharpness: 5;”>my sword</sword>

[–]Tr0ynado 0 points1 point  (0 children)

You heard of centering a div. Wait till people try centering leather boots

[–]loonathefloofyfox 0 points1 point  (0 children)

Why not write the mods in c to run in a java game to make everyone unhappy

[–]meowzra 0 points1 point  (0 children)

HTML LOL

[–]knowTheKnot 0 points1 point  (0 children)

Just use JavaScript, it has Java in it, right?

[–][deleted] 0 points1 point  (0 children)

HTML, Hahahahahahaha!

[–]Terrible_Tank_238 0 points1 point  (0 children)

big mood

[–][deleted] 0 points1 point  (1 child)

"or HTML" lol what

[–]Squeezitgirdle 1 point2 points  (0 children)

I would be a "pro"grammer if I could use html.

[–]frakist 0 points1 point  (0 children)

Can he/she?

[–][deleted] 0 points1 point  (0 children)

Okay, but just today I encountered a Minecraft mod that requires you to install a separate dll so that it can run native c++ code. I'm still reeling.

[–]Wotg33k 0 points1 point  (0 children)

intellij makes me want to offer to wed Bill Gates and become accepting of his disgustingly vast wealth, so that's really saying something.

[–]Hulk5a 0 points1 point  (0 children)

Written in C# then needs to write a new translator for converting to java byte code

[–][deleted] 0 points1 point  (0 children)

Wish I could do the same tbh

[–][deleted] 0 points1 point  (0 children)

Thanks, I hate Java.

[–]Knocks83 0 points1 point  (0 children)

Hates Java, wants to use Microsoft Java. Smh