- Баллы
- 76
- Имя в Minecraft
- TheEfwio
Как!?
Следуйте инструкциям в видео ниже, чтобы узнать, как установить наш сайт как веб-приложение на главный экран вашего устройства.
Примечание: Эта функция может быть недоступна в некоторых браузерах.
private static final UUID movementSpeedUUID = UUID.fromString("206a89dc-ae78-4c4d-b42c-3b31db3f5a7c");
EntityInsentient nmsEntity = (EntityInsentient) ((CraftLivingEntity) entity).getHandle();
AttributeInstance speedattributes = nmsEntity.getAttributeInstance(GenericAttributes.d);
AttributeModifier speedmodifier = new AttributeModifier(movementSpeedUUID, "Movement speed multiplier", 0, 1);
speedattributes.b(speedmodifier);
speedattributes.a(speedmodifier);
Но не через NMS жеМожно атрибутами
Код:private static final UUID movementSpeedUUID = UUID.fromString("206a89dc-ae78-4c4d-b42c-3b31db3f5a7c");
Код:EntityInsentient nmsEntity = (EntityInsentient) ((CraftLivingEntity) entity).getHandle(); AttributeInstance speedattributes = nmsEntity.getAttributeInstance(GenericAttributes.d); AttributeModifier speedmodifier = new AttributeModifier(movementSpeedUUID, "Movement speed multiplier", 0, 1); speedattributes.b(speedmodifier); speedattributes.a(speedmodifier);
А как еще использовать атрибуты?Но не через NMS же
Есть библиотеки, которые позволяют управлять атрибутами удобно и без копания в NMSА как еще использовать атрибуты?
