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
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
11
but Forge didnt
why 1.6.4? 1.7 just came out
perhaps look at ways to link with the summon command?
but the summon command is for 1.7, i am modding for 1.6.4
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!
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!
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
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
Anyone ?
Here is the mod class File :
I want to spawn a Spider
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");
}
}
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
erm... put the main mod class file.
which entity do u want to spawn anyways?
which entity do u want to spawn anyways?
can you put the code?
wich ?
