Portal Gun

Discussion in 'Plugin Requests' started by Shikishima, Jan 24, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    Shikishima

    Plugin category: RPG

    Minecraft version: 1.13

    Suggested name: Portal Gun

    What I want: a plugin that allows players to use a portal gun to travel to various places around the world. i want the portal gun itself to have a crafting recipe and to use something as fuel.

    The portal gun itself crafting recipe:
    [EMPTY][Emerald Block[EMPTY]
    [EMPTY][Diamond Block][Redstone Block]
    [Iron Block][Iron Block][EMPTY]

    Once the portal gun is crafted, if a player right clicks with it in their hand it will give them the option to put coordinates into the portal gun, these coordinates can be changed at any time by right clicking and entering the coordinates again.

    When the portal gun is right clicked it will open a sign gui, the x coordinate goes on the first row, the y coordinate goes on the 2nd row and the z coordinate goes on the 3rd row. if possible id like it so the player can enter the name of the world they will be teleported to on the 4th row of the sign gui. if the 4th line is empty it will default use the world the player is in at the time. so if the player enters 50 on row 1, then 50 on row 2, then -100 on the 3rd row. they will be teleported to x50 y50 z-100 in the world they are currently in. but if the player puts on the last row the name of the world (e.g. world_nether) they will be teleported to the coordinates in that world.

    The actual portal gun item itself is a nether star renamed "Portal Gun" in red text, in the lore it should show the coordinates set in the portal gun at the time.

    once a player has a portal gun with coordinates set on it, if they left click on a surface it will make a portal appear made out of green villager happy particles. the portal will stay open for 5 seconds and any player that walks through the portal will be teleported to the set coordinates in the portal gun.

    For a portal gun to work it needs to use ender pearls. 1 ender pearl is taken from the players inventory each time they make a portal. if the player has no ender pearls in their inventory the message "you do not have any fuel for your portal gun" will be sent to the player.

    Ideas for commands: /portalgun (admin only command, used to auto give the portal gun item to people)

    Ideas for permissions: no permissions, everyone can by default craft the portal gun and use it permission free.

    When I'd like it by: as soon as possible
     
    Last edited: Jan 26, 2019
  2. Offline

    Eccentric_Gamer

    The admin command /portalgun does need a permission though...
     
  3. Offline

    Shikishima

  4. Offline

    Eccentric_Gamer

    Also, you want them to enter coordinates, not right click and/or left click a block?
     
  5. Offline

    Shikishima

    @Eccentric_Gamer yea i want them to be able to enter coordinates, like when the player right clicks the air it opens a sign gui or something where they can type the coordinates into it.
     
  6. Offline

    Shikishima

  7. Offline

    Eccentric_Gamer

    If a player loses they're portal gun with some coordinates in it, do the coordinates save for the player or does each gun have it's own coordinates?
     
  8. Offline

    Shikishima

  9. Offline

    Shikishima

  10. Offline

    Shikishima

  11. Offline

    Shikishima

  12. Offline

    Shikishima

    Bump.....
     
  13. Offline

    Shikishima

    Is anyone capable of making this?
     
  14. Offline

    MrDaniel

    @Shikishima, I will try to give a shot at it, expect it to be done by tomorrow or by after tomorrow, depending on when you respond to my message. One more thing, what item would you like to be used as a portal gun, and what block do you want the portal to be?
     
  15. This is an interesting plugin :)

    Ricks adventures coming to minecraft?
     
  16. Offline

    Shikishima

    @MrDaniel can you make the item for the portal gun a nether star, and the block for the portal to be lime glass, if possible can you make the portal spawn green villager happy particles in a circle ish portal shape.
     
  17. Offline

    MrDaniel

    @Shikishima, is it ok if I make the portal with only particles so a player can actually walk into it?
     
  18. Offline

    Shikishima

  19. Offline

    MrDaniel

    @Shikishima, I finished most part of the code. I changed part of it. You will right click a block, then type the coordinates and a portal will appear above the block that you right-clicked. I haven't had a chance to test it yet so tell me if it works or not.

    https://github.com/MrDaniel-TX/PortalGun (Repository)
    https://ufile.io/kzece (Jar) (Link lasts for 30 days)
     
  20. Offline

    timtower Ninja on the waves Moderator

    @MrDaniel Won't work, you are doing a string compare using == in onClick.java, will return false.
    You probably want to add ProtocolLib to your depends in the plugin.yml, might load them in the wrong order otherwise.
    You need to be careful with your package name, you can only have 1 plugin with the exact same main class, with your package (without plugin name in it) it will happen very fast that you have two of the same.

    Small thing: You can probably add the bin folder to the gitignore :p
     
  21. Offline

    MrDaniel

    @timtower

    1) If I change it to (e.getAction().equals(Action.RIGHT_CLICK_BLOCK)) will it work?
    2) Yep, good idea (why didn't I think of that?!)
    3) I changed it to SubToPew.General

    Small thing: If you punch yourself and it hurts are you strong or are you weak? :p
     
  22. Offline

    timtower Ninja on the waves Moderator

    1. Not if you compare the displayname of the item, it is just for strings.
    3. I never got that stuff.

    Small thing: Your arms are strong, whatever you hit is weak.
     
  23. Offline

    Shikishima

    @MrDaniel i downloaded the jar and put it in my server and it did not work. the plugin didnt load or register on the server at all. it says the version is not defined (invalid description file)
     
  24. Offline

    MrDaniel

  25. Offline

    KarimAKL

  26. Offline

    Shikishima

    @MrDaniel is it possible to make it so the portal gun shoots a projectile when it is left clicked, and wherever the projectile lands the portal opens up their and whatever coordinates were put in the gun is where the portal will take them. if you cant do that its fine just the way it is.
     
  27. Offline

    MrDaniel

    @Shikishima, I'm pretty sure it's possible but atm I am busy making other plugins, I might be able to help you in a week or so.
     
  28. Offline

    Shikishima

    @MrDaniel very well, are you able to fix up the plugin sometime soon tho
     
  29. Offline

    MrDaniel

  30. Offline

    Shikishima

    @MrDaniel

    [12:48:30 ERROR]: Could not load 'plugins\portalgun.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: version is not defined
    at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:907) ~[craftbukkit.jar:git-Bukkit-162bda9]
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:234) ~[craftbukkit.jar:git-Bukkit-162bda9]
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:157) ~[craftbukkit.jar:git-Bukkit-162bda9]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-162bda9]
    at org.bukkit.craftbukkit.v1_13_R1.CraftServer.loadPlugins(CraftServer.java:314) [craftbukkit.jar:git-Bukkit-162bda9]
    at net.minecraft.server.v1_13_R1.DedicatedServer.init(DedicatedServer.java:196) [craftbukkit.jar:git-Bukkit-162bda9]
    at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:664) [craftbukkit.jar:git-Bukkit-162bda9]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
    Caused by: java.lang.NullPointerException
    at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:905) ~[craftbukkit.jar:git-Bukkit-162bda9]
     
Thread Status:
Not open for further replies.

Share This Page