Fabric API

Fabric API

108M Downloads

[Suggestion] Add an entity/player teleport event

TelepathicGrunt opened this issue ยท 1 comments

commented

Much like the teleporting event on Forge that fires for changeDimension (entity) or teleportTo (serverplayer), this allows mods to be able to block teleporting to a disallowed dimension.

Example use case: https://www.curseforge.com/minecraft/mc-mods/restricted-portals

My mod has a custom teleporting system and I am able to call the Forge event to be compatible with the above mod much better. On Fabric, the lack of an equivalent event means I need to do direct mod compat by calling Restricted Portal's code in my mod.

Ideally for 1.19.2+

commented

I'd like to see this feature as well.