RFTools

RFTools

74M Downloads

Detecting a 'frozen' dimension

LemADEC opened this issue ยท 8 comments

commented

what would be the preferred way to detect a frozen dimension and prevent players to access it using other mods?
More specifically, in the WarpDrive mod, players can travel with their ships to other dimensions. I would need a way to detect if an RFTools is valid or not and lockout the ship so it doesn't enter it.

commented

Implemented in next version. The API is the interface RFToolsWorldProvider which you can query from the world provider of a dimension.

commented

Thank you!

commented

Yes, I mean a dimension without power.

commented

And you want to know this from a coding perspective or from a player perspective?

BTW, note that even a frozen dimension can be a valid destination. RFTools has an item that allows a player to travel in an unpowered dimension for a limited time (the Phased Field Generator). That gives the player a way to possibly recover stuff there.

commented

What exactly do you mean by valid dimension? A dimension out of power?

commented

I meant from a coding pespective, I'm transferring a whole ship/base between dimensions, including the players.

commented

At the moment I don't have an API to detect that but I suppose I could add something like this. I'll see if I can do this for next release.

commented

Thank you!