我写了一个插件是玩家死后刷出猪人的。就是player死亡的事件{
player.getWorld().getLocation().spawnEntity(player.getLocation().EntityType.PIG_ZOMBIE);
}大概这么写的可能有些问题因为我手机打字不方便。现在我想让刷出来的猪人有仇恨而且有铁套。在哪里加一句啊。boolean试过了好像不行。isAngry
我不会用。。求助!!
player.getWorld().getLocation().spawnEntity(player.getLocation().EntityType.PIG_ZOMBIE);
}大概这么写的可能有些问题因为我手机打字不方便。现在我想让刷出来的猪人有仇恨而且有铁套。在哪里加一句啊。boolean试过了好像不行。isAngry
我不会用。。求助!!
看不懂的路过

NaOcAn. 发表于 2014-6-19 17:53
看不懂的路过
啊啊啊啊啊啊啊。好着急
神龙star 发表于 2014-6-19 18:04
啊啊啊啊啊啊啊。好着急
爱莫能助= =
PigZombie pig=(PigZombie)player.getWorld().getLocation().spawnEntity....;
pig.setAngry(true);
setAngry就是
pig.setAngry(true);
setAngry就是
810587921 发表于 2014-6-19 18:28
PigZombie pig=(PigZombie)player.getWorld().getLocation().spawnEntity....;
pig.setAngry(true);
setAng ...
谢谢大神。那个这个我是在我那个上面改对吧。谢谢
810587921 发表于 2014-6-19 18:28
PigZombie pig=(PigZombie)player.getWorld().getLocation().spawnEntity....;
pig.setAngry(true);
setAng ...
大神我还要问题。我想在猪人身上加药水效果怎么加??
pig.addPotionEffect(new PotionEffect(PotionEffectType.getById(1),10000,1));
本帖最后由 神龙star 于 2014-6-20 07:21 编辑
怎么加装备我要加铁套。
810587921 发表于 2014-6-19 18:28
PigZombie pig=(PigZombie)player.getWorld().getLocation().spawnEntity....;
pig.setAngry(true);
setAng ...
810587921 发表于 2014-6-20 03:00
pig.addPotionEffect(new PotionEffect(PotionEffectType.getById(1),10000,1));
那。。。怎么加装备??
看不懂,你什么意思!

神龙star 发表于 2014-6-20 07:15
那。。。怎么加装备??
pig.getEquipment().setHelmet(ItemStack);
pig.getEquipment().setChestplate(ItemStack);
pig.getEquipment().setLeggings(ItemStack);
pig.getEquipment().setBoots(ItemStack);
ItemStack为物品
810587921 发表于 2014-6-20 16:17
pig.getEquipment().setHelmet(ItemStack);
pig.getEquipment().setChestplate(ItemStack);
pig.getEquip ...
从上往下
头
身体
腿
脚
貌似很像GTA服务器,死了出现一个警察猪人= =