@ForgeSubscribe
public void onEntityDrop(LivingDropsEvent event) {
if (event.source.getDamageType().equals("player")) {
rand = Math.random();
if (event.entityLiving instanceof EntitySquid) {
//The integer at the end relates to how many potato will be dropped.
if (rand < 0.25d){
//The integer at the end relates to how many potato will be dropped. event.entityLiving.dropItem(Item.potato.itemID, 1);
I was wondering if you could make all the dye colors e.g blue, lime colored Items like pouches, and magic shards (the magic shards just have to look like a shard but in all the dye colors )
Glass bottle full of liquid magic (purple)
(red)
(green)
(blue)
Also could you please make some wand textures;
Lightning
Flying
Transmutation
general (in purple green and red )
Thats it for now i may come back for more
Thanks I will acknowledge you on my forum and I will take respect of your time
ava.lang.IllegalArgumentException: Illegal object for naming null
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:95)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:103) at com.theoutscast.magicalcraft.Magicalcraft_main.PreInit(Magicalcraft_main.java:84)
ava.lang.IllegalArgumentException: Illegal object for naming null
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:95)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:103) at com.theoutscast.magicalcraft.Magicalcraft_main.PreInit(Magicalcraft_main.java:84)
Hum he does bring up a interesting point that because of EE most things are going to be taken as copieing so a really unique idea/take on magic is what this mod is going to need.
0
0
0
Thanks Theoutscast
0
0
EDIT I found my problem and I heard that you may have to install simpleparts pack
EDIT I know this post Is a month old I was just having a few problems
0
Lines in red say that i need to make a new field/variable
package correct.name.here;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.passive.EntitySquid;
import net.minecraft.item.Item;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.living.LivingDropsEvent;
public class LivingDropsEvent {
public static double rand;
@ForgeSubscribe
public void onEntityDrop(LivingDropsEvent event) {
if (event.source.getDamageType().equals("player")) {
rand = Math.random();
if (event.entityLiving instanceof EntitySquid) {
//The integer at the end relates to how many potato will be dropped.
if (rand < 0.25d){
//The integer at the end relates to how many potato will be dropped.
event.entityLiving.dropItem(Item.potato.itemID, 1);
}
}
}
}
}
}
}
}
}
0
I was wondering if you could make all the dye colors e.g blue, lime colored Items like pouches, and magic shards (the magic shards just have to look like a shard but in all the dye colors )
Glass bottle full of liquid magic (purple)
(red)
(green)
(blue)
Also could you please make some wand textures;
Lightning
Flying
Transmutation
general (in purple green and red )
Thats it for now i may come back for more
Thanks I will acknowledge you on my forum and I will take respect of your time
Thanks theoutscast
P.S YOU ARE AMAZING!!!!
0
nm the code was in the preint not int derp
0
LanguageRegistry.addName(wandtable, "Wand Bench");
Thats in my main mod file
ava.lang.IllegalArgumentException: Illegal object for naming null
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:95)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:103)
at com.theoutscast.magicalcraft.Magicalcraft_main.PreInit(Magicalcraft_main.java:84)
thats the line of
LanguageRegistry.addName(wandtable, "Wand Bench");
0
0
0
Yea i know this post is a bit old
all my new info is on my website
its now called magicalcraft
0
If you have any ideas id love to hear them.
0
its my own code (pahimars code is mind boggling) and my plan its to maybe have the block disappear 1% of the time
0
thanks