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

 

 Posted by at 6:12 am