1
Guys got any?
Create an account or sign in to comment.
16
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
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]
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]
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.
The New Boston on youtube.
would u reconmmend telling me how to?
would u reconmmend telling me how to?
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?
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.
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.
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.
Oh I was thinking they were trying to code a plugin for Bukkit with Javascript. Yeah that makes sense.
I am. I have coded a functional plugin for minecraft bukkit. So, you're all wrong again.
view more replies ( 1 )
Butterbacon16 do you know how to program a plugin?
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.)?