kyrptonaught / customportalapi

Developer Api for creating custom portals to any dimension
MIT License
63 stars 22 forks source link

[Not an issue] Destination portal spawns in the air #62

Closed Dragonisser closed 1 year ago

Dragonisser commented 1 year ago

Unlike the nether portal, the portal created with this library in the destination dimension is on the same y coordinate, which often results in it flying.

Is there any fix for it?

MC: 1.18.2 Fabric: 0.48.0+1.18.2 Loader: 0.13.3 CPA: 0.0.1-beta52-1.18

2022-09-27_17 44 19

kyrptonaught commented 1 year ago

That likely means it couldn't find a safe place to put the portal, it'll default to the same coords as the entrance portal.

It may not consider the grass block there as safe to hold the portal.

Do you have a link to the src code?

Dragonisser commented 1 year ago

That likely means it couldn't find a safe place to put the portal, it'll default to the same coords as the entrance portal.

It may not consider the grass block there as safe to hold the portal.

Do you have a link to the src code?

Ye its my own mod. It might lack a certain block tag?

https://github.com/Dragonisser/CobaltMod-3/blob/42ed0a4e02802878061e62ad196bbe6d501daba4/src/main/java/de/prwh/cobaltmod/core/blocks/CobaltGrassBlock.java

Edit:

I just saw that my grass_block had MATERIAL.PLANT. Not sure how that happened, but that might explain the problem.

Edit:

That was the issue. I switched it to MATERIAL.SOLID_ORGANIC and it works. If i hit an ocean it still doesn't work, but i guess that cant be changed.

2022-09-28_14 21 17

2022-09-28_14 20 57