1

JavaScript Programming Tutorials?

McHacker 12/3/13 10:58 pm
584
12/5/2013 12:39 am
Guys got any?
Posted by
McHacker
Level 15 : Journeyman System
10

  Have something to say?

JoinSign in

16

lme999
12/05/2013 12:39 am
Level 38 : Artisan Crafter
If you'd like to learn how to code Bukkit plug-ins, these guys have quite a few tutorials on it: https://www.youtube.com/user/TheBCBroz/videos
1
themasterbuddy
12/05/2013 12:35 am
Level 3 : Apprentice Network
Here.
Basics:
[code]
libraries = [
//default library title would be "script_name",
"reloadPlugins",
"joinScript",
"chatFilter"
];
var debug_messages = true;

function log(msg, level, verbose) {
if (verbose && !debug_messages) return;
if (!level) level = "f";
if (msg instanceof Array) {
for (var i in msg) {
loader.server.consoleSender.sendMessage("\xA7" + level + "[PlugJS] " + msg[i]);
}
} else {
loader.server.consoleSender.sendMessage("\xA7" + level + "[PlugJS] " + msg);
}
}
var block = {
};
var enchantment = {
};
var entity = {
};
var inventory = {
};
var painting = {
};
var player = {
};
var server = {
};
var vehicle = {
};
var weather = {
};
var world = {
};
var js = {
};
var spout = {
screen: {},
slot: {},
key: {}
};
var exports = {
};

var iced;
var CoffeeScript;
function loadLib(lib) {
log("Loading core script " + lib, '2', 'verbose');
load("./plugins/PlugJS/core/" + lib);
}

loadLib("node-path.js");
loadLib("lang_helpers.js");
loadLib("stopwatch.js");
loadLib("js_persistence.js");
loadLib("core.js");
loadLib("compile.js");
loadLib("async.js");
loadLib("tt_war_helpers.js");
loadLib("coffee-script.js");
loadLib("iced.js");
loadLib("icedlib.js");
loadLib("econ.js");
loadLib("metadata.js");
getPlugin("PlugJS").js.eval(read_file("./plugins/PlugJS/core/linq.js"))

iced = exports.iced;

for (var i in libraries) {
require(libraries[i], "libs");
}

log("Finised loading scripts", '2');
[/code]
My loader:
[code]
// Generated by CoffeeScript 1.6.3
(function() {
String.prop('reloadPlugin', {
get: function() {
return function() {
Bukkit.server.pluginManager.disablePlugin(this.plugin);
return Bukkit.server.pluginManager.disablePlugin(this.plugin);
};
}
});

}).call(this);

[/code]
1
froghog
12/05/2013 12:03 am
Level 63 : High Grandmaster Modder
1
aboveordinary
12/04/2013 9:23 pm
Level 43 : Master System
Go to Khan academy, you can learn quite a few different types of programming languages, currently I'm learning Java. It is provided in a fun and interactive way. I've spent about 5 hours in the past 2 days just learning how to code in school! I really can't put it down and wouldn't want to spend my time any other way.
1
TeamTorentine
12/04/2013 1:21 am
Level 47 : Master Lad
The New Boston on youtube.
1
Crysis_3
12/03/2013 11:51 pm
Level 1 : New Miner
would u reconmmend telling me how to?
1
Crysis_3
12/03/2013 11:48 pm
Level 1 : New Miner
would u reconmmend telling me how to?
1
StormCoreFilms
12/03/2013 11:38 pm
Level 81 : Elite Artist
Just don't get confused between Java and JavaScript - they're not the same. Minecraft uses Java, so perhaps you want to learn that instead of JavaScript?
1
themasterbuddy
12/03/2013 11:40 pm
Level 3 : Apprentice Network
Actually, yes their different, but I make plugins in javascript and they work on my test server. So he can learn javascript to make plugins. It's a ton easier and I recommend it.
1
aman207
12/03/2013 11:52 pm
Level 40 : Master Cake
Um I pretty sure that isn't the best idea, to use a totally different programming language than what Bukkit or Minecraft was coded in. That shouldn't even work.
1
Circuit Craft
12/04/2013 12:09 am
Level 6 : Apprentice Network
There are plugins for JavaScript code in Minecraft, but they are usually used for functions and formulas, not anything too big. (WorldEdit craft scripts) Everything else should be done in Java, since that's how you use the BukkitAPI.
1
aman207
12/04/2013 12:16 am
Level 40 : Master Cake
Oh I was thinking they were trying to code a plugin for Bukkit with Javascript. Yeah that makes sense.
1
themasterbuddy
12/04/2013 9:17 pm
Level 3 : Apprentice Network
I am. I have coded a functional plugin for minecraft bukkit. So, you're all wrong again.
1
Crysis_3
12/03/2013 11:25 pm
Level 1 : New Miner
Butterbacon16 do you know how to program a plugin?
1
Butterbacon16
12/03/2013 11:17 pm
Level 43 : Master Steve
I have been looking for something like this too, but it would help what kind of programming you want to learn (like you want to make a plugin, or just full on java scrip game makeing ext.)?
1

Welcome