Skip to content

Instantly share code, notes, and snippets.

/**
* Creates the given item with randomized attributes and such.
* @param stack
* @param player
*/
public static void createWeapon(ItemStack stack, EntityPlayer player)
{
NBTTagCompound nbt = NBTHelper.loadStackNBT(stack);
IPlayerInformation playerInfo = player.getCapability(CapabilityPlayerInformation.PLAYER_INFORMATION, null);