> Bed Teleports you! <

Discussion in 'Archived: Plugin Requests' started by MinopolisMc, Oct 1, 2012.

  1. Offline

    MinopolisMc

    Granold's Bed

    What I want
    It'd be great if somebody could make me a plugin which teleports you to a certain place when you wake up from a certain bed.

    I only need one bed to work like this. The teleportation should work cross worlds, so if the bed is at world A and I set the destination in world B, it should still work. Im using Multiverse if that might help.

    Commands
    /granoldsbed setbed -> Sets granold's bed.
    /granoldsbed setdest -> Sets the location the player should wake up at.

    Ideas for permissions
    No permissions are needed, everyone should be able to use it and only ops should be able to change the beds location.

    When I'd like it
    In the next 1-5 days

    Thank you awesome devs! [cake]
     
  2. Offline

    Alkhemyst

    Hmm, This seems simple but implying that you have to be in a bed and then wake up from it to then be teleported to another world. Teleport to another world is as simple as choosing where you want to be teleported when going from the overworld to the nether. But then before that you have the plugin detect the exact tick in the event you wake up so that the teleportation can apply to the player. Interesting, never seen anything like it.
    Well, Is it reasonable for me to ask you what exactly you plan on using this for? I'm not implying I'm taking on the job but I'm just asking, and then I can decide whether or not I'm going to do it.
     
  3. Offline

    MinopolisMc

    I'd like to use it for my spawn so that new players can sleep in a bed to then get teleported to the main world.
    It would be really really nice if you could make this plugin <3
     
  4. Offline

    Alkhemyst

    Oh, you don't have like a warp or a portal system or anything of that nature? because if it's simply for that It's alot easier to just have a portal since you can only sleep at night. Also, I'm assuming you are only addressing this for thematic purposes correct? because theres no other valid reason that it HAS to be in a bed.
     
  5. Offline

    MinopolisMc

    Exactly. The server has like a little story and the bed is an important part of it. Beds are also much fancier in 'Granold's house' than a portal.
     
  6. Offline

    chasechocolate

    MinopolisMc I might be able to make this. You want so when you type /granoldsbed setbed it will get the block you are looking at and set it as the bed? Also, you want it so whenever a player leaves a bed, it will teleport them to the main bed, or when a player leaves the setbed?
     
    MinopolisMc likes this.
  7. Offline

    Reptar_

    This can easily be done with Skript.
     
  8. Offline

    MinopolisMc

    Yes, but the idea is that when a player enters the setbed, he wakes up at the setdest. All other beds on the server should be unaffected from the plugin.
     
  9. Offline

    chasechocolate

  10. Offline

    Kiakaha

    I want this too. I have a Dream World that is for creative and stuff and i really wanted people to have to go to sleep to get there..

    But i want it to be any bed :) can you make both options available?
     
    MinopolisMc likes this.
  11. Offline

    Reptar_

    Get Skript and add this script:

    command /bedtp set:
    description: Sets TP spot of bed.​
    usage: /bedtp​
    permission: skript.bed​
    trigger:​
    set {bedtp.%player%} to location of player​
    message "Your bed TP spot has been set!"​
    stop​

    on bed enter:
    {bedtp.%player%} is set​
    teleport player to {bedtp.%player%}​
    message "You've been teleported!"​
    stop​

     
  12. Offline

    MinopolisMc

    So is any of you guys going to make this?
    I would really appreciate that and I think Kiakaha too. :)
     
  13. Offline

    gomeow

    I've been working on this, it's almost done. I am now just adding support to use multiple beds. So far it only does one bed. It will be done shortly
     
  14. Offline

    lenis0012

    ill make it, pm me for more details
     
  15. Offline

    Hoolean

    PlayerBedLeaveEvent FTW! :D
     
    techboy291 and MinopolisMc like this.
  16. Offline

    Alkhemyst

    I know java but Minecraft just makes it more complex -_- Well, It seems I have work to do on my own projects.
     
  17. Offline

    gomeow

    I just said its almost done...
     
    MrBluebear3 likes this.
  18. Offline

    lenis0012

    ok, go ahead.
     
  19. Offline

    MinopolisMc

    Let's see who's is better! >:D
     
  20. Offline

    lenis0012

    i ahve a first dev build done, let me explain it to you:
    it auto generates a conifg with these options:
    bed-tp delay: keep this on 5 or lower is reommented
    dream-time: the duration of your dream, 300 0= 5 min
    commands:
    /dl set - set your DreamLand (location)

    planned:
    * add noteblock sounds
    * add a option to egt a global dreamland instead of a private 1 for everyone
    * make it so you cant die in a dream
    * make it so you can fly in a dream
    * make it so you cant destroy/place blocks in a dream
    * add a low chance to egt a nightmare (w/ HeroBrine)

    download v1.0: https://dl.dropbox.com/u/67122021/DreamLand.jar
    recommented cb build: 1.3.2-R2.0
    also works with: 1.2.5-R5.0
     
  21. Offline

    AndyMcB1

    1.4 can do this I think. Only certain beds though and you could just be near the bed...
     
  22. Offline

    MinopolisMc

    I guess you misunderstood me; the plugin should:
    - Teleport players from ONE certain bed to a certain location in a different world when they wake up
    - Not teleport them back after some time
    and finally leave all beds except 'Granold's bed' (the one which warps you) unaffected
     
  23. Offline

    gomeow

    The one I am making, will basically be warps, with beds. And it auto detect the name

    So you can have multiple
    I have a dev build so far also, but that one only works with one bed
    *Uses PlayerBedLeaveEvent

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  24. Offline

    lenis0012

    This is so easy!
    If you wsnt just this I'll get it to you tomorrow, cause I'm going to bed now
    Tjis will be 5min work
     
  25. Offline

    MinopolisMc

    Nice! Make sure to tell me when you think it's ready :)

    One version with a timer, one version with the bed leave event. Couldn't be better for me! :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  26. Offline

    gomeow

    I can try to upload what I have so far, it will do just what you want, but I want to add more
     
  27. Offline

    lenis0012

    Yout version would have a terrible bug
    What if there are multiple people on the server?
     
  28. Offline

    gomeow

    It finds out who slept in the bed... I've already been testing this... I'm not that stupid so as to do that
     
  29. Offline

    lenis0012

    i dont mean that, for example.
    3 people on my server, i go sleep. but it wont get day!
    its confusing and whierd to get teleport once you click: leave
    you should have a delayed task that is going to make it day about 5sec after you go sleep.
    a AsyncDelayedTask shoudl be alright
     
  30. Offline

    MinopolisMc

    That's fine, I've got essentials. (even turns time to day when only one player sleeps)
     

Share This Page