1

Spawn Existing Mob Egg ?

Spect99's Avatar Spect9910/25/13 12:00 pm
10/25/2013 3:21 pm
Spect99's Avatar Spect99
Hey Guys
It been like 1 hour that i am trying to find the right code so that my Item when right cliked spawn a spider .
so i put my item extends ItemEgg so it can be thrown but it spawns a Chiken
Is there a way to change that to a Spider ?
PS : I am not saying " change the Egg to spawn a spider , but my item to spawn a spider.
Thx for thoses who will help
Posted by Spect99's Avatar
Spect99
Level 43 : Master Droid
46

Create an account or sign in to comment.

11

1
10/25/2013 3:21 pm
Level 43 : Master Droid
Spect99
Spect99's Avatar
but Forge didnt
1
10/25/2013 3:03 pm
Level 8 : Apprentice Miner
evilbob
evilbob's Avatar
why 1.6.4? 1.7 just came out
1
10/25/2013 2:41 pm
Level 8 : Apprentice Miner
evilbob
evilbob's Avatar
perhaps look at ways to link with the summon command?
1
10/25/2013 3:00 pm
Level 43 : Master Droid
Spect99
Spect99's Avatar
but the summon command is for 1.7, i am modding for 1.6.4
1
10/25/2013 1:30 pm
Level 42 : Master Modder
BitBox
BitBox's Avatar
If I were you, I would just look at all the spawn eggs, and everything to do with spawning monsters, and try and work it out.

I am still trying to work out how to register my first block though, so I guess I'm not that helpful.

Good Luck! It sounds like a great mod!
1
10/25/2013 2:35 pm
Level 43 : Master Droid
Spect99
Spect99's Avatar
Thx
Well that''s the problem , i tried to look for all the spawn eggs , but there isnt anything like that only the :
RegisterEntityEgg(EntityVenom.class, 0xffffff, 0x000000);
that allows you to register a new Spawn Egg

Anyway thx for your help , if you need help with the blocks tell me , i can help you
1
10/25/2013 12:59 pm
Level 43 : Master Droid
Spect99
Spect99's Avatar
Anyone ?
1
10/25/2013 12:13 pm
Level 43 : Master Droid
Spect99
Spect99's Avatar
Here is the mod class File :
Click to reveal
package venom;
import tpearl.ItemNetherpearl;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.common.DungeonHooks;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = Venom.modid, name = "Venom", version = "1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class Venom {





public static final String modid = "Venom"
+ "";

//public static

public static Item venomeggItem;



@EventHandler
public void load(FMLInitializationEvent event)
{

venomeggItem = new ItemVenomegg(9011).setUnlocalizedName("venomegg");



//Registry

LanguageRegistry.addName(venomeggItem, "Venom Egg");
}


}


I want to spawn a Spider
1
10/25/2013 12:10 pm
Level 1 : New Miner
mysterylegodude
mysterylegodude's Avatar
erm... put the main mod class file.

which entity do u want to spawn anyways?
1
10/25/2013 12:03 pm
Level 1 : New Miner
mysterylegodude
mysterylegodude's Avatar
can you put the code?
1
10/25/2013 12:05 pm
Level 43 : Master Droid
Spect99
Spect99's Avatar
wich ?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome