Portal v1 (r842)
#11
I think it's possible...
Reply
Thanks given by:
#12
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?
Reply
Thanks given by:
#13
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!Big Grin

As for unloaded chunk: yeah, that could be a big issue...
Reply
Thanks given by:
#14
This is supposing that the server doesn't stop / restart for maintenanceTongue
Reply
Thanks given by:
#15
Well, we could always store .teleport_ready, could we?)
Reply
Thanks given by:
#16
This plugin does not want to work with the latest release.

Or am I not installing it correctly.
Reply
Thanks given by:
#17
fixed it. didn't test it though


Attached Files
.zip   Portal.zip (Size: 3.64 KB / Downloads: 326)
Reply
Thanks given by:
#18
No prob.

Ill test on my server.
Reply
Thanks given by:
#19
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.
Reply
Thanks given by:
#20
i fixed it..


Attached Files
.zip   Portal.zip (Size: 3.65 KB / Downloads: 307)
Reply
Thanks given by:




Users browsing this thread: 19 Guest(s)