09-08-2012, 10:38 PM
I think it's possible...
Portal v1 (r842)
|
09-08-2012, 10:38 PM
I think it's possible...
I'm not sure about that. If the destination is in a chunk that has been unloaded, there's no way to touch that chunk, to add data to it, or to load it in order to make those things happen. You can transport a player there, because that will load the chunk, but items, no, probably not.
Also, if the portal is both-ways, how would you handle the items? should they cycle between the places periodically, or should they transport once? If they should transport once, how do you tell that they have already transported?
09-08-2012, 11:41 PM
Quote:how do you tell that they have already transported?Very simple, just one hash-table for items with .teleport_ready boolean variable in it, and .teleport_state int variable (could be boolean too). When item is teleported, .teleport_ready flag drops, when item leaves portal volume (because of water, for example) - .teleport_state indicates it and .teleport_ready flag is up again. So you could even send items between teleports continiously using pistons as flood gates! As for unloaded chunk: yeah, that could be a big issue...
09-09-2012, 01:24 AM
This is supposing that the server doesn't stop / restart for maintenance
09-09-2012, 01:26 AM
Well, we could always store .teleport_ready, could we?)
03-01-2013, 07:12 PM
This plugin does not want to work with the latest release.
Or am I not installing it correctly.
fixed it. didn't test it though
03-02-2013, 09:05 PM
No prob.
Ill test on my server.
03-03-2013, 12:40 AM
Does not quite work.
/pwarp works. It created the 2 files. I select the wooden sword and type /penter warp and /penter seems to be not recognized. |
« Next Oldest | Next Newest »
|