wdcftgg
本帖最后由 wdcftgg 于 2022-12-27 20:53 编辑

如题
1.12.2



解决的链接
IEntityAttributeInstance - CraftTweaker Documentation (blamejared.com)


Lacz
https://docs.blamejared.com/1.12 ... s/IEntityLivingBase

  1. import crafttweaker.events.IEventManager;
  2. import crafttweaker.event.EntityLivingDamageEvent;
  3. import crafttweaker.event.ILivingEvent;

  4. import crafttweaker.entity.IEntity;
  5. import crafttweaker.entity.IEntityLivingBase;

  6. events.onEntityLivingDamage(function(event as EntityLivingDamageEvent) {
  7.     print(event.entity.entityLivingBase.totalArmorValue);//在日志中打印受到伤害的生物的总护甲值
  8. });
复制代码





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