GolfCraft

Discussion in 'Archived: Plugin Requests' started by jeffro1001, Apr 9, 2012.

  1. Offline

    jeffro1001

    Hello Bukkit community.

    I am in the process of building a golf course ( played with arrows )

    The front nine is just about finished.

    One of the main problems I'm having is distinguishing one players arrow from another players arrow.

    What I'm doing right now is using the TorchArrow plugin.

    While this works great for a 2 player group ( 1 person shoots regular torch arrows and one person shoots Redstone torch arrows ) it's still an issue for groups larger than two.

    What I'm looking for in a plugin ( bare mininum ) it to have your arrow spawn a sign where it lands with the name of who shot the arrow on it.

    Other features that the plugin could have ( but not necessarly required ) are:

    If the arrow lands in water have it broadcast "<Player> just landed in a water hazard"
    If the arrow lands in grass have it broadcast "<Player> just landed in the rough."
    If the arrow lands in green wool have it broadcast "<Player> just landed in the fairway!"
    If the arrow lands in lime wool have it broadcast "<Player> just landed on the green!"
    If the arrow lands in sand have it broadcast "<Player> just landed in a sand trap!"

    This ' golfMode' should be turned on / off by the player typing in a command /golfmodeOn or /golfmodeOff

    While in golfmode the players arrows plant the sign and while off they just behave like normal arrows.
     
  2. Offline

    Musaddict

    jeffro1001 Here's a preliminary test I made. I like the idea of this plugin, so I'll go ahead and make it for you :)

    It's only version 0.1.0 (alpha), so it has no real functionality except:
    • Puts you in "golfing" mode with /golf
    • Tells who launched the "ball" to anyone who is in golfing mode
    I gtg hang with a friend, but afterwards I'll continue work on it


    http://dl.dropbox.com/u/25125155/GolfCraft/0.1.0/GolfCraft.jar
     
  3. Offline

    jeffro1001

    Awesome!
    Thanks a ton.
    Free greens fees for life!!
     
  4. Offline

    Musaddict

    jeffro1001 got a few questions for you.
    1. What block are you using for the cup?
    2. What do you want to happen when a ball lands on a tree?
    3. Do you want a teleport command for porting to each newly created sign?
    4. Right now, if a ball lands on an unspecified block, it will say "The ball has landed on <Block Type>." Do you want this changed, or removed?

    Some notes of what's finished so far:
    • Balls are now tracked, and will tell all players golfing where the ball has landed.
    • For some reason, there are some bounce mechanics mixed into arrows landing. This mechanic is not visual. This means that based on the speed and angle of your arrows, the generated sign may be 1-3 blocks away from the arrow.
      • This mechanic is achieved by using
        Code:
        event.getEntity().getLocation().getBlock().getRelative(BlockFace.DOWN);
      • To my knowledge, there is not another call to get the block the entity (arrow) landed on. Ergo, this virtual bounce mechanic cannot be avoided.
    • Golfer messages currently distinguish:
      • Water Hazards
      • Rough
      • Fairway
      • Green
      • Sand Trap
      • Unknown
    • Previous notes:
      • Enter/exit golfing mode with /golf
      • Tells who launched the "ball" to anyone who is in golfing mode

    I still need to add signs. While I'm at it, are there any other features you want to request?

    jeffro1001 Here's version 1.0.0!

    Everything you specified so far is implemented :) Currently, there are no permissions in this plugin. Would you like me to add some?

    http://dl.dropbox.com/u/25125155/GolfCraft/1.0.0/GolfCraft.jar

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

    jeffro1001

    Musaddict,

    Thank you so much for doing this.

    To answer your questions:

    1. What block are you using for the cup?
    The cup / hole is Glowstone, recessed 1 block down into the green.

    2. What do you want to happen when a ball lands on a tree?
    I havent had that problem yet but I suppose it would be considered unplayable, and would be a 1 stroke penalty.
    Perhaps have it broadcast something comical like "<Player> just landed in a birds nest."

    3. Do you want a teleport command for porting to each newly created sign?
    No. I think that would make the game too short. One of the pleasures of golf is enjoying the beautiful landscape.
    I'm putting so much time into creating this course I would rather people be 'forced' to enjoy it :p

    4. Right now, if a ball lands on an unspecified block, it will say "The ball has landed on <Block Type>." Do you want this changed, or removed?
    That sounds fine, just leave it in.

    Im not going to worry too much about the 'bounce' issue. Sometimes your golf ball can take a funny bounce now and then.

    Currently, there are no permissions in this plugin. Would you like me to add some?
    Yes please.
    My server only has two OP's so a perm node will be necessary.
    I'm using GroupManager for my perms.

    Again, thank you so much for doing this.

    I just gave it a test run and it's working better that I had hoped.

    This is great!!
    Thank you so much!!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  6. If i could add something. - just had a fun game with some friends.

    but after i won, it quickly turned ugly, players keept shooting, even if it wasent there turn - could you maby do so only x can sign up for a golf turnament, and then only 1 can shoot the ball. it can anouce, it is now X ´s turn to shoot. and then take that player out, when he hits the hole.

    edit. - had another idear, in turnament mode, only the player with "golf.referee" node can destroy signs, and maybe do so the shooting player cant move when he is on the sign.

    i already love this plugin, and my admins is building a field, so we can have turnaments. for prices :p
     
  7. Offline

    Musaddict

    jeffro1001 Perfk Updated to 1.1.0!

    Version 1.1.0
    • Added Superperm Support
      • golf.spectate (listen to golf channel)
      • golf.play (gives player a bow and arrow, and enables them to play)
      • golf.ref (allows players to destroy signs other than their own)
    • Added anti-griefing parameters
      • Players must destroy their sign before another sign can generate.
      • Refs can destroy signs, and allow online players to continue playing.
      • Note: If an offline player's sign is destroyed, that player cannot golf again until the server is reloaded.
      • Breaking a sign sets your bow and arrow amount to 1
    • Added commands
      • Help: /golf help - displays multiple help pages
      • Version: /golf version - checks for updates
    • Note: enabling golf mode will force your bow and arrow count to 1.
    • Added recognition for the cup (Glowstone)
    • Landing a ball in a hazard will give you a new bow and arrow.
    http://dl.dropbox.com/u/25125155/GolfCraft/1.1.0/GolfCraft.jar

    Updated to 1.1.1 (forgot to stop other people from destroying signs, lol). Also, I made it so that shooting an arrow from sand will reduce the arrow's velocity by 80%!

    http://dl.dropbox.com/u/25125155/GolfCraft/1.1.1/GolfCraft.jar

    Moved the plugin information to the plugin releases forum.

    http://forums.bukkit.org/threads/fu...y-golf-with-a-bow-and-arrow-1-2-5-r1-0.70003/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
    Perfk likes this.

Share This Page