Вопрос Как создать fairball невидымым и без текстуры огня?

Версия Minecraft
1.20.X

HepBbl

Пользователь
Сообщения
47
Всем привет! Уже несколько дней мучаюсь над созданием невидимого фаерболла.

Пример кода:

Код:
Location loc = player.getEyeLocation().toVector().add(player.getLocation().getDirection().multiply(2)).
        toLocation(player.getWorld(), player.getLocation().getYaw(), player.getLocation().getPitch());
Fireball fireball = player.getWorld().spawn(loc, Fireball.class);
fireball.setGlowing(false);
fireball.setFireTicks(0);
fireball.setInvisible(true);
fireball.setShooter(player);


По итогу Fairball создается полностью видимым и с текстурой огня(Он типа подожжен)
 
Последнее редактирование модератором:
Решение
«Sets whether the entity is invisible or not. This setting is undefined for non-living entities like boats or paintings. Non-living entities that are marked as invisible through this method may e.g. only hide their shadow. To hide such entities from players completely, see ».
«Sets whether the entity is invisible or not. This setting is undefined for non-living entities like boats or paintings. Non-living entities that are marked as invisible through this method may e.g. only hide their shadow. To hide such entities from players completely, see ».
 
  • Мне нравится (+1)
Реакции: pink
Назад
Сверху Снизу