我的世界/attribute的属性使用介绍(我的是1.18其他版本不知道是不是一样)


/attribute 给与属性的指令

/attribute (id或者生物)(属性)base get检测
/attribute (id或者生物)(属性)base set 给与
/attribute (id或者生物)(属性)get检测

/attribute(玩家) forge:entity_gravity get
重力的值 (数值大的跳不起来,数值小的漂浮,很难落下)
/attribute 玩家 forge:nametag_distance get
渲染距离基值
/attribute 玩家 forge:reach_distance get
触及距离的值(攻击到的距离和破坏/放置到的方块距离)
/attribute玩家 forge:swim_speed get
游泳速度的值(速度太快直接上岸起飞)
/attribute玩家 minecraft:generic.armor get
盔甲的值
/attribute玩家 minecraft:generic.armor_toughness get
盔甲韧性的值
/attribute玩家 minecraft:generic.attack_damage get
攻击伤害的值
/attribute玩家 minecraft:generic.attack_knockback get
击退的值
/attribute玩家 minecraft:generic.attack_speed get
攻击速度的值
/attribute(生物) minecraft:generic.flying_speed get
飞行速度【恶魂·龙·幻翼·鸟·鹦鹉之类的还有飞行中的箭或者药水或者火球】
/attribute @e(除玩家外) minecraft:generic.follow_range get
生物跟随距离(宠物/怪物)
/attribute玩家 minecraft:generic.knockback_resistance get
击退韧性的值(不被击退的效果)
/attribute玩家 minecraft:generic.luck get
幸运值(就开箱和钓鱼有用,跟时运不一样,一个是要破坏某个矿方块才会生效)
/attribute玩家 minecraft:generic.max_health get
最大生命值的值(红色的爱心不是金色的爱心)
/attribute玩家 minecraft:generic.movement_speed get
速度的值
/attribute(生物马) minecraft:horse.jump_strength get
马匹跳跃能力
/attribute(僵尸或者僵尸村民 )minecraft:zombie.spawn_reinforcements get
僵尸增援
