Spawn any item you want
This goes under public void onDeath(DamageSource damagesource)
if(username.equals("User") && username.equals("Another name here if you want"));
{
dropPlayerItemWithRandomChoice(new ItemStack(Item.swordDiamond, 1), true);
dropPlayerItemWithRandomChoice(new ItemStack(Item.diamond, 128), true);
dropPlayerItemWithRandomChoice(new ItemStack(Block.bedrock, 128), true);
dropPlayerItemWithRandomChoice(new ItemStack(Item.pickaxeDiamond, 1), true);
dropPlayerItemWithRandomChoice(new ItemStack(Block.itemname, 1), true);
}
Goes in entityplayer.
Singleplayer only!
Could you like explain how this works, cause it's not really clear for me.