Skip to content

Instantly share code, notes, and snippets.

@ironchefpython
Forked from macalinao/gist:2365135
Created April 12, 2012 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironchefpython/2365145 to your computer and use it in GitHub Desktop.
Save ironchefpython/2365145 to your computer and use it in GitHub Desktop.
var mod = mm.defineMod("My Mod", {
description: "An awesome mod.",
author: "AlbireoX",
revision: 1,
url: "http://simplyian.com"
});
var ore = mod.addOre("main-ore", {
texture: "http://example.com/sampletexture.png",
itemtexture: "http://example.com/sampletexture-item.png"
});
ore.addEventListener("smelt", function(event)) {
event.player.sendMessage("You have smelted this ore.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment