If a player is called "Notch" he drops an apple. http://minecraft.gamepedia.com/Notch
This commit is contained in:
parent
34207a606a
commit
0040a88b9b
@ -839,6 +839,12 @@ void cPlayer::KilledBy(cEntity * a_Killer)
|
|||||||
cItems Pickups;
|
cItems Pickups;
|
||||||
m_Inventory.CopyToItems(Pickups);
|
m_Inventory.CopyToItems(Pickups);
|
||||||
m_Inventory.Clear();
|
m_Inventory.Clear();
|
||||||
|
|
||||||
|
if (GetName() == "Notch")
|
||||||
|
{
|
||||||
|
Pickups.Add(cItem(E_ITEM_RED_APPLE));
|
||||||
|
}
|
||||||
|
|
||||||
m_World->SpawnItemPickups(Pickups, GetPosX(), GetPosY(), GetPosZ(), 10);
|
m_World->SpawnItemPickups(Pickups, GetPosX(), GetPosY(), GetPosZ(), 10);
|
||||||
SaveToDisk(); // Save it, yeah the world is a tough place !
|
SaveToDisk(); // Save it, yeah the world is a tough place !
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user