Skip to content

Instantly share code, notes, and snippets.

View dmillerw's full-sized avatar

Dylan Miller dmillerw

View GitHub Profile
[
{
"input": {
"item": {"item": "customthings:item", "damage": 40},
"fluid": {"fluid": "water", "amount": 1000}
},
"output": {
"item": "customthings:item",
"damage": 37
},
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!
Time: 5/30/15 4:46 PM
Description: Initializing game
java.lang.IllegalArgumentException: URI is not hierarchical
at java.io.File.<init>(Unknown Source)
at subsistence.common.config.ConfigManager.genDefaultConfigs(ConfigManager.java:63)
at subsistence.common.config.ConfigManager.loadAllFiles(ConfigManager.java:32)

There are two ways to define an item. A one liner, and a full on JSON object.

One Liner

"input": "stone"

One liners can either be an item, or an ore dictionary tag. Internally, the string is interpreted as an item first, and if one doesn't exist, as an ore dictionary tag. In the case of conflicting tags (stone), it can be prefixed with 'ore:'

Object

Objects are only interpreted as a specific item, but allows for more control (stack size and item damage)

[
{
"input": "stone",
"output": [
{
"item": {
"item": "planks",
"damage": 1
},
"chance": 1
[
{
"input": {
"object": "generic.item",
"data": {
"item": "stone"
}
},
"output": {
"object": "generic.item",
[
{
"input": [
{
"object": "generic.fluid",
"data": {
"fluid": "water",
"amount": 450
}
},
[21:44:30] [Client thread/INFO] [STDOUT/]: [cpw.mods.fml.client.SplashProgress:start:89]: ---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 4/20/15 9:44 PM
Description: Loading screen debug info
java.lang.Throwable
at cpw.mods.fml.client.SplashProgress.start(SplashProgress.java:88)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:190)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)
{
"indent": "book_one",
"resources": {
"item_icon": "book.png",
"gui_background": "background.png"
},
"dimensions": {
"width": 126,
"height": 250,
"page_x": 5,
-- notify command script
function join(array)
return table.concat(array, " ")
end
local args = split_args
local user = args[1]
args.set(1, nil)
local message = join(args)
-- notify background script
function get_message(user)
local message = storage.getf(user.nickname)
if message ~= nil then
storage.deletef(user.nickname)
return mesage
end
end