Just an Idea: Copy the code from the potion effect which you want on your armor, create a new one, set your potion effect to the effect on your armor and delete the particles from the code.
Hello, i have some questions to world generator changes:
How can i do this that my biome will only generate next to .. lets say swamps?
Can i do this with vanilla biomes without core file changes too?
How can i generate a structure or a block on specific coordinates? (on the surface)
Sorry for my bad english and thanks for the help. :3
Create a new class:
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.passive.EntitySheep;
import net.minecraft.item.Item;
import net.minecraftforge.event.*;
public class yourclass{
@ForgeSubscribe
public void playerKilledSheep(LivingDeathEvent event)
{
if(event.entityLiving instanceof EntitySheep)
{
event.entityLiving.dropItem( yourmod.youritem.itemId Amount);
}
}
}
Then write in your main class in the public void load:
MinecraftForge.EVENT_BUS.register(new yourclass());
I hope i could help you.^^