ItemStack References

 

ItemStack References (for short: stackrefs) are used everywhere you need to specify an item or block. There are multiple ways to specify one:

  • B:[{modid}:]{name}[@{meta}] – Specifies a block by name
  • I:[{modid}:]{name}[@{meta}] – Specifies an item by name
  • S:{modid}:{name} – Custom ItemStack (registered with forge registerCustomItemStack)
  • OD:{name} – OreDictionary entry
  • ${char} – Reference to a previously defined recipe character
  • Reflection (not recommended)

Notes:

  • All strings must be either alphanumeric, or quoted
  • Everywhere that {modid} is optional – it will default to vanilla Minecraft if not specified
  • Everywhere that {meta} is optional – it will default to either 0 or a wildcard (depending on context)

BdLib includes a /dumpregistry command that will write out all the names that can be used above

B:piston // Vanilla piston
I:Forestry:scoop // Scoop, from Forestry
I:"BuildCraft|Silicon":redstoneChipset @ 4 // BC chip, with metadata
S:gendustry:"upgrade.sky" // A custom ItemStack from Gendustry
OD:blockGlass // OreDictionary entry for glass

 

 Posted by at 6:12 am