Skip to content

Instantly share code, notes, and snippets.

@shadowfacts
Created August 15, 2015 18:33
Show Gist options
  • Select an option

  • Save shadowfacts/a1e7de09f4afdcc8df8e to your computer and use it in GitHub Desktop.

Select an option

Save shadowfacts/a1e7de09f4afdcc8df8e to your computer and use it in GitHub Desktop.
[14:31:53] [Client thread/INFO] [ShadowJS]: Evaluating includes
[14:31:54] [Client thread/INFO] [ShadowJS]: Evaluating main.js
1xtile.stone@0
1xtile.stonebrick@0
var stone = Blocks.get("stone");
var cobblestone = Blocks.get("cobblestone");
OreDictionary.registerOre(stone, "ShadowJSTest");
cobblestone.registerOreDictionaryName("ShadowJSTest");
var ShadowJSTest = OreDictionary.getOres("ShadowJSTest");
for (var i = 0; i < ShadowJSTest.length; i++) {
var ore = ShadowJSTest.get(i);
print(ore);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment