Skip to content

Instantly share code, notes, and snippets.

@plexigras
Last active August 8, 2016 22:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plexigras/3e5d408ce303ac47b9e34838eac2d353 to your computer and use it in GitHub Desktop.
Save plexigras/3e5d408ce303ac47b9e34838eac2d353 to your computer and use it in GitHub Desktop.
MC|TrList schema
["container", [
{
"name": "windowId",
"type": "i32"
},
{
"name": "trades",
"type":["array",{
"countType":"i8",
"type":["container",[
{
"name": "first_input",
"type": "slot"
},
{
"name": "output",
"type": "slot"
},
{
"name": "has_second_item",
"type": "bool"
},
{
"name": "secondary_input",
"type": ["switch",
{
"compareTo": "has_second_item",
"fields":{
"true":"slot",
"false":"void"
}
}
]
},
{
"name": "disabled",
"type": "bool"
},
{
"name": "tooluses",
"type": "i32"
},
{
"name": "max_tradeuses",
"type": "i32"
}
]
]
}]
}
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment