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

NaOcAn.
看不懂的路过

神龙star

啊啊啊啊啊啊啊。好着急

NaOcAn.
神龙star 发表于 2014-6-19 18:04
啊啊啊啊啊啊啊。好着急

爱莫能助= =

a8105
PigZombie pig=(PigZombie)player.getWorld().getLocation().spawnEntity....;
pig.setAngry(true);
setAngry就是

神龙star
810587921 发表于 2014-6-19 18:28
PigZombie pig=(PigZombie)player.getWorld().getLocation().spawnEntity....;
pig.setAngry(true);
setAng ...

谢谢大神。那个这个我是在我那个上面改对吧。谢谢

神龙star
810587921 发表于 2014-6-19 18:28
PigZombie pig=(PigZombie)player.getWorld().getLocation().spawnEntity....;
pig.setAngry(true);
setAng ...

大神我还要问题。我想在猪人身上加药水效果怎么加??

a8105
pig.addPotionEffect(new PotionEffect(PotionEffectType.getById(1),10000,1));

神龙star
本帖最后由 神龙star 于 2014-6-20 07:21 编辑
810587921 发表于 2014-6-19 18:28
PigZombie pig=(PigZombie)player.getWorld().getLocation().spawnEntity....;
pig.setAngry(true);
setAng ...
怎么加装备我要加铁套。

神龙star
810587921 发表于 2014-6-20 03:00
pig.addPotionEffect(new PotionEffect(PotionEffectType.getById(1),10000,1));

那。。。怎么加装备??

SuperGameMaster
看不懂,你什么意思!

a8105
神龙star 发表于 2014-6-20 07:15
那。。。怎么加装备??

pig.getEquipment().setHelmet(ItemStack);
pig.getEquipment().setChestplate(ItemStack);
pig.getEquipment().setLeggings(ItemStack);
pig.getEquipment().setBoots(ItemStack);
ItemStack为物品

a8105
810587921 发表于 2014-6-20 16:17
pig.getEquipment().setHelmet(ItemStack);
pig.getEquipment().setChestplate(ItemStack);
pig.getEquip ...

从上往下

身体


xfxxxbhh
貌似很像GTA服务器,死了出现一个警察猪人= =

第一页 上一页 下一页 最后一页