Posted July 30, 201411 yr 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 GitHub|Recipe API Proposal
July 31, 201411 yr Author 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 GitHub|Recipe API Proposal
August 10, 201411 yr 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?
August 12, 201411 yr Same here, i've had a small chat with wuppy and during that chat he mentioned that he had no idea how to do this efficient but apparently it's hardcoded
August 13, 201411 yr 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.
August 15, 201411 yr 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.