Skip to content

Instantly share code, notes, and snippets.

@dazsim
Created July 18, 2016 11:59
Show Gist options
  • Save dazsim/b4800c1ed86a740278ba1f6597ea83e9 to your computer and use it in GitHub Desktop.
Save dazsim/b4800c1ed86a740278ba1f6597ea83e9 to your computer and use it in GitHub Desktop.
snippet create barrel with no comparator or item frame
NBTTagCompound n = new NBTTagCompound();
n.setBoolean("frame", true);
n.setBoolean("comp", true);
i.setTagCompound(n);
GameRegistry.addRecipe(i, new Object[]{
"WIW",
" C ",
"WIW",
'W',new ItemStack(Blocks.PLANKS,1,0),'C',Blocks.CHEST,'R',Items.COMPARATOR,'F',Items.ITEM_FRAME, 'I',Items.IRON_INGOT
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment