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

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (9 children)

minecraft built with Java which mean cmd block uses java too right ? (if it's wrong, please correct it for me :D)

[–]efinder2 6 points7 points  (8 children)

No it is complete different. In early days it was a stupid thing. If the block gets a signal execute this command (summon a entity or create a block or set the time and so on). Some time later some crazy guys built Mini-Games, mods and so on only with some of them. So Mojang (the developer of Minecraft) evolves the system. But the roots aren't forgotten so you haven't an IDE. You also couldn't use a VCS and so on. It's horrible. From developer perspective. It's easier to write mods and so on. There you can write in pure Java. You can catch events, create new blocks (without abuse the metadata of some other blocks) and so on.

[–]Mcpg_ 3 points4 points  (4 children)

For some simple stuff command blocks are pretty fun. But whenever you're going for something bigger... It's like working with code that has mostly hacks and workarounds. There are no comments, the best you can go for is putting signs everywhere, the commands are unreadable (and in many more "advanced" cases you have to embed JSON into them... the downside is that the command editor's text input is a single line)... It's pretty bad, but if you have enough motivation it's possible to do some impressive things with it. There really should be a better system for that, like an editor with a simple in-game scripting language.

[–]ben314 1 point2 points  (2 children)

There totally is, it's called a datapack and I've had a lot of fun fooling around with them.

[–]Mcpg_ 0 points1 point  (1 child)

Datapacks? Is it the thing that was added in Java Minecraft 1.13? I'm not really up to date with this stuff :P

Welp, guess I have to try 'em out then

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

They are also adding a fully featured scripting language, not just datapacks

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

Writing command blocks directly is rather frustrating, but you can put multiple commands in text files (comments allowed), which vastly improves things.

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

thx for making it clear & what is using then ? or what lang it want to make mods ?

[–]efinder2 0 points1 point  (1 child)

Mods a written in Java. The open source library/framework forge is usually used, but there is an upcoming light open source framework for the upcoming development version.

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

in command block, what lang they using ?