O'Reilly logo

A Beginner’s Guide to Writing Minecraft Plugins in JavaScript by Walter Higgins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Choosing and Using a Text Editor

Up to now you’ve been executing JavaScript at the server console window using the js command. This is a perfectly good way to try JavaScript. It’s nice to have a command-line interpreter when trying things out and exploring a new language. However, once you want to start doing some real work with JavaScript, you’ll want to be able to save your work and run it, without issuing many js commands at the server console window each time your server starts.

ScriptCraft lets you load JavaScript files you’ve saved and either can run them automatically when the server starts up or can run your code on-demand. If you plan on saving your work, you’ll need to write your code using a text editor. Any text editor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required