Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.kazeyometest.tuto.common;
- import net.minecraft.entity.SharedMonsterAttributes;
- import net.minecraft.entity.monster.EntityMob;
- import net.minecraft.init.Items;
- import net.minecraft.item.Item;
- import net.minecraft.world.World;
- public class MobTest extends EntityMob {
- public MobTest (World par1World){
- super(par1World);
- }
- public void applyEntityAttributes() {
- super.applyEntityAttributes();
- this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(30D);
- this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(4D);
- }
- public Item getDropItem() {
- return Items.diamond;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement