This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
worldObj.spawnEntityInWorld(new "EntityPatapon"("patapon"));
Quote from Zanoab worldObj.spawnEntityInWorld(new "EntityPatapon"("patapon")); Strings aren't callable.
package net.minecraft.src;
public class GUITOL extends GuiScreen
{
public void initGui()
{
controlList.clear();
controlList.add(new GuiButton(0, 100, 100, 100, 20, "Spawn Tatepon"));
controlList.add(new GuiButton(1, 200, 100, 100, 20, "Spawn Yumipon"));
controlList.add(new GuiButton(2, 300, 100, 100, 20, "Spawn TehBosss"));
}
public void drawScreen(int i, int j, float f)
{
drawDefaultBackground();
super.drawScreen(i, j, f);
}
public void actionPerformed(GuiButton guibutton)
{
if(guibutton.id == 0)
{
worldObj.spawnEntityInWorld(new "EntityPatapon"("patapon"));
}
if(guibutton.id == 1)
{
mc.displayGuiScreen(new GuiMainMenu());
}
if(guibutton.id == 2)
{
mc.displayGuiScreen(new GuiMainMenu());
}
}
}
Strings aren't callable.
So do you know how to spawn mobs in this GUI? I'm trying to spawn entitypatapon