[INACTIVE][TP] Portals - Easy temporary teleports [556]

Discussion in 'Inactive/Unsupported Plugins' started by Waterwolf, Mar 18, 2011.

  1. Offline

    Waterwolf

    Portals - easiest way to teleport​
    Version: v0.35

    Portals allows you to set up portals by left/rightclicking while holding an item (like in real portal). Portals can be used instantly when they're set up so they allow you to make quick teleports between mine and main base for example. They're also destroyable by others so make sure there are no griefers around :p

    Features:
    • Place portals
    • Use them
    • ???
    • PROFIT
    Download: http://dl.dropbox.com/u/18458187/bukkit/Portals.jar
    Source codes are included. They're in same folder as class files.

    There is no support for permissions and I'm most likely not adding them except if I get a good reason.
    Also the portals aren't saved when server restarts so don't rely on them 100%.

    Tested on 556.

    Changelog:
    Version 0.35
    • Portal placing distance isn't limited anymore
    • Added new properties file option portalPlacementDistanceLimit
    Version 0.31
    • Bugs fixed
    Version 0.3
    • Uses PLAYER_MOVE instead of scheduled event. Probably reduces lag and adds accuracy but also disables mob and item teleports for now
    • Better distance detector
    • Portals are not placed as blocks of wool anymore but by right and left clicking while having "portal gun" item in hand
    • Removes every portal from map on disable to make duplicating wool impossible
    • No permission on "portal gun" using at the moment
    • /giveportals changed to /giveportalgun
    • A few more properties in Portals.properties so you might want to remove old file so it gets remade
    • Distance limit on teleporting (minimum distance is 3 and built-in, default max distance is 100 and can be modified in properties file
    • You can now place normal blue/orange wool instead of forced portal
    • Portals are removed instantly when left clicked with any item
    Version 0.2
    • Fixed bug that basically rendered portals useless (compared portal locations to first players location instead of everyone's)
    • Properties file (is generated at startup and is found from folder where craftbukkit jar is)
    • Possibility to require 2 blocks vertically to make a portal
    • Possibility to physically destroy last built portal when new one is built
    • Teleports mobs and items too now!
    • /giveportals command for OP's that gives you 10 blue wool and 10 orange wool
    • Some performance improvements on main scheduled event
    Version 0.1
    • Releasing my awesome plugin
    Todo:
    • Mob and item teleports back
     
  2. Offline

    Tzion

    Awesome plugin. This'll be great combined with a long distance "paint" mod. Though I think it would be cool if, when a player made a portal, their last portal of that color was destroyed. And if it required portals to be 2 blocks high. And of course persistence would be nice.
     
  3. Offline

    DannyLAGZLOL

    like 6 plugins have this -.-
     
  4. Offline

    Waterwolf

    http://plugins.bukkit.org/#ti=&ta=TP&au=
    Why can't I see any plugins that do this? The idea in my plugin is it's simplicity. You don't need commands when most of the others do.

    The last portal player made when making new one will not be a portal anymore but it will still exist as a block.I guess I'll look at it.

    It's always harder to handle 2 blocks than only one block but yeah, maybe.

    Mm yeah I doubt I'll do this one. Imo this is best for temporary teleports and for bigger scale teleports you should use stargate for example.

    HUGE amount of updates added :p

    - Fixed bug that basically rendered portals useless (compared portal locations to first players location instead of everyone's)
    - Properties file (is generated at startup and is found from folder where craftbukkit jar is)
    - Possibility to require 2 blocks vertically to make a portal
    - Possibility to physically destroy last built portal when new one is built
    - Teleports mobs and items too now!
    - /giveportals command for OP's that gives you 10 blue wool and 10 orange wool
    - Some performance improvements on main scheduled event

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

    Raveinacave

    You should change it so you can use an item like a stick or another useless item and it will place either orange or blue wool where you are looking, e.g Left click with a stick places blue woll where you are looking and Right click places orange wool where you are looking, With a simple textue pack it could become a portal gun!!!!

    Please do this it will be EPIC
     
  6. Offline

    Pandonetho

    How do you make these portals? Is it just by replacing the empty 6 blocks of air inside an obsidian portal with the coloured wool?

    And does this plugin work with the latest recommended build of bukkit?
     
  7. Offline

    Waterwolf

    Sounds very nice :p I'll go do this now.

    You don't need obsidian portal. Just place orange/blue wool and it teleports you whenever you go close to it.

    And I don't see why it wouldn't work with latest recommended build.

    Version 0.3 published!
    Changelog in first post and sourcecode inside jar as usual

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

    Raveinacave

    Is there a way to change the Portal placing distance with the portal gun (stick) if not could this be added so i can use it in my levels f portal as a actual portal gun.

    Again nice work on the update but this little change will make it EPICER
     
  9. Offline

    Waterwolf

    Basically bukkit doesn't support that. When you left click it can detect targeted block that is 50+ blocks away but with right clicking it only detects the "hovered block" (aka the one that has white border when you're looking at it) which can be max 4 blocks away from you. I didn't want to force player to use commands because it's not real portal spirit so I just limited the left clicking to 4 blocks away. If you come up with better idea that doesn't involve right clicking (or bypasses the limit) I'll be sure to add it :)


    Also I found a couple of bugs in this version and I'm not sure should I update now or later as they're not TOO serious.
     
  10. Offline

    Raveinacave

    maybe if you made it so it acts like an arrow so where it falls it places a portal so you could use a bow as the gun and an arrow to place the portal . The same system as it is now with left click to place one portal but with right click to shoot an arrow that places another.

    Also when i try this it does not place the blue portal unless im hoverin over the block

    any idea why?

    If the bugs previously mentioned are the fact that it wont place the blue portal at a distance please do update as i am having troubles with my portal world

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

    Waterwolf

    That's because of a limitation in server/bukkit

    Bukkit only detects right clicks when you're hovering a block. That's exactly the problem I am having. You might want to disable portals plugin until I update it as the bugs allow people to duplicate wool by creating portals because my portal removing method broke :/

    Edit: Bugs fixed. Still haven't found solution to right clicking limit
     
  12. Offline

    Raveinacave

    Maybe you could look at a plugin that already has long distance placing and see if you can adapt the code to work,
     
  13. Offline

    Waterwolf

    Getting the block player is looking at isn't hard, but triggering portal placement event on right click works only if player is hovering at block and right clicking. The best solution that I came up with is using left click to place both portal types and maybe right clicking to switch between them.
     
  14. Offline

    Pluckerpluck

    Erm... try looking into the WorldEdit code. The brush tool uses right click and can be used over an infinite distance (well... there is a limit you define + render limit I guess).

    No idea how they do it but they definitely have some sort of fix... plus World Edit is open source now.
     
  15. Offline

    Waterwolf

    Haha. PLAYER_ITEM is called every time player right clicks, no matter if block is hovered. (Even though event.getBlock() in PLAYER_ITEM can return null, you can use event.getPlayer().getTarketBlock() to get tarketed block)

    I don't have time to finish it today or tomorrow but I should be able to put an update day after tomorrow :p
     
  16. Offline

    Raveinacave

    I have done a quick texture pack for this i wll add the link asap (it makes the stick into a portal gun) :D

    Is there a way of changing the item so when it places the blocks it could place two different paintings (one that looks like a blue portal and one that looks like a orange portal)???

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

    Waterwolf

    I don't want to force users to download a texture pack to make it look like portal. It's good now and last thing I want to do is break copyright laws about copying portal graphics or something. So it's a no from me to this :/
     
  18. Offline

    Raveinacave

    Ok thats fine it was just a thought :D
     
  19. Offline

    Waterwolf

    Updated to v.0.35
    Changelog in first post

    This plugin is really getting overpowered for vanilla-ish use now :/
     
  20. Offline

    ZachBora

    noW YOu'Re thInKIng wIth PortALs!

    So this plugin is like the portals in the game from Valve?
     
  21. Offline

    Waterwolf

    Yes. You use stick (or other item that's configured in properties file) to shoot portals and use them
     
  22. Offline

    Raveinacave

    Its extremely useful if you dont want normal users having compass

    One bug
    When you walk under a portal it teleports you as though you walked into it

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

    Crashdoom

    Would it be possible to allow portals to be made above/below the clicked block?
    E.g. The block I click is on the roof, so the portal would be made vertically down instead of attempting to be made vertically up.

    Edit: Also, would it be possible to define an on-contact close block? That would close all portals by the user upon contact with it, e.g. water or something?

    - Crashdoom
     
  24. Offline

    Waterwolf

    Vertically down is possible, even though it sounds like people teleporting to it will die because of fall damage.

    I'm not sure about on-contact thing. What would you even use it for? Also redstone powered close would be easier to implement if that works too
     
  25. Offline

    Raveinacave

    Is this being updated to version 1.4 of minecraft???
     
  26. Offline

    EBCorporations

    Hey I'm not too sure if I'm allowed to post on these old post, but can you by any chance update it? We're interested in using it in the server and really want it working. Also is it possible to make it only placable on white wool surfaces? Thanks! (I'm searching plugin for the Official Aperture Science server)
     
  27. Offline

    Plague

    considered inactive
     
  28. Offline

    Jaggeaa

    how do i make that portal gun!?
     

Share This Page