Jump to content

Recommended Posts

Posted

Is it possible to have separate instances of a dimension for different players? I mainly want some temporary dimensions that should only contain one player at a time.

 

Also, is it possible to restrict block placement in a dimension?

 

Thanks in advance,

Nephroid

Posted

Does anyone have any ideas?

 

Right now, the only workaround I can think of is hashing each player by player name, then setting a certain spawn location based on the integer from the hash function. These dimensions are meant to be pretty small and enclosed (like the ones from the dimensional doors mod), so that might work.

 

If anyone has any additional ideas or suggestions, I'd like to hear them.

 

Thanks

-Nephroid

  • 2 weeks later...
Posted

I'd like to mention in advance that I don't have a solution to your issue, I'm actually looking for this solution as well and have been unable to find it, I thought it'd be wasteful to create a new thread. Did you ever find a solution or are you still searching?

Posted

One idea I had was to hash the players names (I dont remember if 1.7.2 and/or 1.7.10 use hash values for players or if thats 1.8+, if it's in 1.7.2 then use minecrafts hash value) and somehow translate that into a set of coordinates or like a grid location and rather than having separate instances entirely give each player a portion of a dimension. I don't know if this is exactly what OP needed but in my case this would work as I'd only need a small area for my dimensions anyways, but it has to be a separate dimension as it fits my mod thematically.

 

EDIT: When I say hash I don't really mean like the String.hash function (that isn't the exact name but close enough, I can't remember off the top of my head) but rather like an MD5 sum or something along those lines because it makes life a lot easier if all the "hashes" are the same length which isn't always the case with the hash function. The downside with using something like an MD5 is that is returns I believe a 128 bit number. Which is two longs worth of integer data, AKA very large. So it'd need to be truncated a lot and it becomes a mess. So that wouldn't really work either, hence me not getting any further with the idea

 

EDIT 2: I just reread the post and realized the OP already had this idea, I didn't see the post before though haha, oh well.

Posted

I guess for the block destruction in the instanced dimension its just a simple check whether the player is in the specific dimension and then return the I believe its the canEdit player capability false. But that is just a theory, the living update event should be useful for that.

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.