Apotheosis

Apotheosis

70M Downloads

Arrow bugs.

KostromDan opened this issue ยท 3 comments

commented
  1. Achivement take aim will not work with apotheosis arrows.
  2. Arrow rendering is absolutely incorrect with this affixes.
    image
    The trajectory can vary up to 30 degrees.
commented
  1. Dragon can be cheated with obsisian arrows. When he landed, you can shot very many arrows on top of him, and then he start fly, all arrows fall and kill him. Not reproducable with vanilla arrows.
commented

Arrow rendering simply isn't build to handle very fast arrows. I'm not inclined to rewrite it entirely to make it work properly, so I'm going to leave it as-is.

As for the obsidian arrows, their code is the same as vanilla arrows, so nothing to fix there either.

commented

@Shadows-of-Fire
You can fix obsidian arrows glith.
I fixed it for my modpack with this kubejs script.

EntityEvents.hurt(event => {
    if (event.entity.type == "minecraft:ender_dragon") {
        let center_bedrock = 60
        for (let i = 80; i > 40; i--) {
            if (event.level.getBlock(0, i, 0).getId() == 'minecraft:bedrock') {
                center_bedrock = i
                break
            }
        }
        if (event.source.type == "arrow" && Math.sqrt(event.entity.blockPosition().distSqr(new $BlockPos(0, center_bedrock, 0))) <= 5) {
            event.cancel()
            return;
        }
        ...
        ```