Jump to content

[1.15.2] How do I create custom point of interest for portal?


Recommended Posts

Posted

I created custom portal block, which functions correctly, but it leaves behind nether portal not my own. The code is mostly copied from NetherPortalBlock and ITeleporter.

 

Posted

I feel like if I look at your Teleporter class, that would be easily answered in about three lines of code. That's what you get for copy-pasting.

 

As for a custom POI, that's a registry. Although, that only matters if you are trying to link two portals together that are at different coordinates.

Posted

So your frame is of blue ice: so fix this https://github.com/mcDandy/Winks-mod/blob/master/src/main/java/cz/mcDandy/winksmod/Teleporters/OmegaTeleporter.java#L204. And the other one too.

 

I'm pretty sure this: https://github.com/mcDandy/Winks-mod/blob/1703f1ec689c927b55679d656271813d38dcc107/src/main/java/cz/mcDandy/winksmod/Blocks/OmegaPortalBlock.java#L66 can't be used either since it specifically uses the vanilla teleporter.

 

Also, register your own POI then and use it instead. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.