#etherwarp teleport position doesnt work

1 messages · Page 1 of 1 (latest)

devout jewel
#

I'm using aotv in the dungeon and I can't see the etherwarp teleport position. I don't know what the problem is. I tried to fix it but couldn't. Can anyone help me with this? Thanks
PS. Im using with it patcher mod, dungeon rooms mod, neu, skyhanni and apec.

sinful monolith
#

are you even pressing shift

devout jewel
#

yes

sinful monolith
devout jewel
#

yes

devout jewel
#

:/

hybrid dawn
#

Are you open to using another mod

#

If so

#

Use Odin’s

kind granite
#

Since they're already using neu anyway

hybrid dawn
#

😃

kind granite
#

And I think you can change the color

devout jewel
#

ok i somehow fixed this ty for help

hybrid dawn
#

When was this added

#

I never saw this in my neu (tbf I haven’t logged on in months)

kind granite
hybrid dawn
kind granite
# hybrid dawn U looked at the code (I didn’t)

as you might notice for color I said "I think" which indicates I was unsure. This could possibly mean that I only opened up the code after saying it has the feature to confirm that I'm not lying.

#

which you can also see by the fact that I sent the image 3 minutes later

#

:3

hybrid dawn
#

👍

hybrid dawn
#

I don’t touch neu for etherwarp

kind granite
#

me neither I just used Skytils one I think

hybrid dawn
#

So I have like 0 idea of it

#

Ngl I have 0 idea about 90% of neu

kind granite
#

me too

#

I just never really used it

#

Only reason I got it back then was for experiment solver I think

#

And ig the storage gui

hybrid dawn
#

Yeah

#

I use it for the most minor qol imaginable

sinful monolith
#

I have a better version of the etherwarp thingy sitting on mine

#

except I can't find the block id for flowing lava

kind granite
hybrid dawn
kind granite
#

Doesn't it ignore liquids anyway?

hybrid dawn
#

Because you can’t etherwarp on lava

#

And it would prob predict lava flowing as a normal block

hybrid dawn
kind granite
#

idk if that works fine or not for your case but I think it matches what neu had back then

hybrid dawn
#

Cold fr

#

But yes it should work

#

I think

kind granite
#

like it would detect the flowing lava and such

hybrid dawn
#

With abt 3 seconds of flipping through code

kind granite
#

So you might just need to tweak the isValidEtherwarpPos possibly

hybrid dawn
#

Yeah that would be it

kind granite
#

(I love fixing issues by simply pulling up with old code)

sinful monolith
#

from what I can see it shouldn't work correctly in multiple cases

kind granite
sinful monolith
kind granite
sinful monolith
#

welcome to hypixel

#

regular pressure plates work

kind granite
#

but ig still better to work with than your code?

#

Since here you just need to add if (dumbblock) don't_do_stuff

sinful monolith
#
private fun newIsValidEtherwarpPos(obj: MovingObjectPosition): Boolean {
        val pos = obj.blockPos
        if (etherwarpTransparents.contains(mc.theWorld.getBlockState(pos).block)) return false
        return (mc.theWorld.getBlockState(pos).block.material.isSolid || validEtherwarpBases.contains(mc.theWorld.getBlockState(pos).block)) && (1..2).all {
            return@all etherwarpTransparents.contains(mc.theWorld.getBlockState(pos.up(it)).block)
        }
#

discord formatting still butchers it

#

amazing

kind granite
#
private fun newIsValidEtherwarpPos(obj: MovingObjectPosition): Boolean {
    val pos = obj.blockPos
    if (etherwarpTransparents.contains(mc.theWorld.getBlockState(pos).block)) return false
    return (mc.theWorld.getBlockState(pos).block.material.isSolid || validEtherwarpBases.contains(mc.theWorld.getBlockState(pos).block)) && (1..2).all {
        return@all etherwarpTransparents.contains(mc.theWorld.getBlockState(pos.up(it)).block)
    }
}
kind granite
sinful monolith
kind granite
sinful monolith
kind granite
#

```kt
//code here
```

sinful monolith
#

kt...

kind granite
#

formatting I fixed myself

sinful monolith
kind granite
#

<3

#

alternative is to just leave the indents and put a new line above the code with like // or smth

#
//to fix discord
    private fun newIsValidEtherwarpPos(obj: MovingObjectPosition): Boolean {
        val pos = obj.blockPos
        if (etherwarpTransparents.contains(mc.theWorld.getBlockState(pos).block)) return false
        return (mc.theWorld.getBlockState(pos).block.material.isSolid || validEtherwarpBases.contains(mc.theWorld.getBlockState(pos).block)) && (1..2).all {
            return@all etherwarpTransparents.contains(mc.theWorld.getBlockState(pos.up(it)).block)
        }
#

tho it does become quite long if you keep indents D:

sinful monolith
#
private fun raycast(player: EntityPlayerSP, partialTicks: Float, dist: Float, step: Float): BlockPos? {
        var pos = Vec3(player.posX, player.posY + player.getEyeHeight(), player.posZ)
        val lookVec3 = player.getLook(partialTicks)
        var look = Vec3(lookVec3.xCoord, lookVec3.yCoord, lookVec3.zCoord)
        look *= step / look.lengthVector()
        val stepCount = ceil(dist / step)

        for (i in 0 until stepCount) {
            pos += look
            val world = Minecraft.getMinecraft().theWorld
            val position = BlockPos(pos.x, pos.y, pos.z)
            val state = world.getBlockState(position)
            if (state.block !== Blocks.air) {
                //Back-step
                pos -= look
                look *= 0.1
                for (j in 0..9) {
                    pos += look
                    val position2 = BlockPos(pos.x, pos.y, pos.z)
                    val state2 = world.getBlockState(position2)
                    if (state2.block !== Blocks.air) {
                        return BlockPos(position2)
                    }
                }
                return BlockPos(position)
            }
        }
        return null
    }
#

the hell is this

kind granite
#

epic code

#

it's what neu/hypixel use

#

I put in like the minimum amount of effort to port it

sinful monolith
#

it looks horrible

#

mc has a built in raycast function

sinful monolith
#

truly I can english

kind granite
#

the thing is, it works differently

sinful monolith
#

works fine for me

kind granite
#

it shouldn't tho

sinful monolith
kind granite
#

stuff like iron gates should count as full blocks

sinful monolith
kind granite
#

But this method uses the actual hitboxes

sinful monolith
#

whar?

kind granite
#

The iron fence thing

sinful monolith
kind granite
#

iron bars

sinful monolith
kind granite
#

you know exactly what I meant

sinful monolith
kind granite
#

but anyway, the hypixel method assumes all blocks are full blocks

sinful monolith
#

it doesn't

kind granite
#

it should

#

If it doesn't they changed it again which would be weird and neu would also be wrong again

sinful monolith
#

fences still extend upwards onr

#

one

#

torches are solid

#

some flowers are solid

#

some aren't

kind granite
#

example:

#

if I teleport here, it uses the purple one (neu) not the blue one (skytils)

sinful monolith
#

will test later

kind granite
#

example as well

#

this will teleport you on the bar, but skytils doesn't show cause not full hitbox

#

ig you can just look through what neu says and compare?

sinful monolith
#

I hate carpets

kind granite
#

also you can't tp onto torches

sinful monolith
kind granite
#

tested all flowers in the hub I could find and none allow teleporting on them and neu is correct

#

so neu is probably worth trusting

#

no idea about the lava thing

#

flowing lava also seems to work with neu

#

can't tp at all with liquids

#

but yea tldr: just compare to neu, it's basically correct

sinful monolith
#

🙂

kind granite
sinful monolith
kind granite
#

You can teleport onto those blocks yes

#

But you can't teleport through liquids

#

And the code for neu works from underneath I'm fairly sure

kind granite
kind granite
#

yea neu is also correct with this