[INACTIVE][FUN] ChickenHunter v0.6 - Duckhunt for MC | xConomy [953]

Discussion in 'Inactive/Unsupported Plugins' started by Thomas Bucher, Apr 15, 2011.

  1. Offline

    Thomas Bucher

    ChickenHunter - Duckhunt for Minecraft:
    Version: v0.6 It launches Chicken and Broadcasts who hit the Chicken.
    Check out the Video: Demovideo

    Features:
    • It shoots chickens
    • It says who hit the Chicken
    • Usses iConomy or BOSEconomy (enable in the Configfile)
    • set Cost per shot (rightklick the dispenser to fill it)
    • see the Load of the Dispenser (leftklick it)
    • build multiple , for more fun !!
    • Announcement Broadcast is limited to Area
    • It shoots other Stuff.. (careful dont hit, it gives a penalty)
    Download The Plugin 0.6 (iconomy 5.x)

    Download The Plugin 0.5 (iconomy < 5.x)

    Source Code is in the Jar

    How it works:
    Place a Brickstone and a Dispenser next to each other.
    If you Power the Brickstone, the Dispencer Fires a Chicken.
    The Chicken get despawned after 8 seconds. Then you may fire next Chicken.
    [​IMG]
    More Fun with more Cannons:
    [​IMG]
    Have Fun ;-)

    Code:
    useiconomy: true
    useboseconomy: false
    shotcost: 2
    shotcooldown: 4000
    hitreward: 15
    broadcastdistance: 150
    despawntime: 8500
    debug: false
    otherstuff: true
    hitpenalty: 100
    usepenalty: true
    otherstuffchance: 3
    
    useiconomy -> Use iConomy for Charge / Reward players
    useboseconmy -> Use BOSEconomy for Charge / Reward players
    shotcost -> Cost per Charge (rightklick the dispenser)
    shotcooldown -> Miliseconds befor the Cannon can be triggered again
    hitreward -> Money you get if you hit a Chicken!!
    broadcastdistance -> Distance to the killed Chicken, players get notified about who killed it
    despawntime: -> Time in miliseconds as the chicken will last in game
    debug: -> exessive Debugging? Turn this off "false"
    otherstuff: -> Shoot other Creeps as well ?
    usepenalty -> Use a Penalty if you shot other Creeps?
    hitpenalty -> The Penalty to apply for other Creeps
    otherstuffchance -> The Chance to Spawn something other than a chicken in %


    TODOs:
    • Fixup the Texts
    Ideas:
    • Add a list of spawnable creatures
    Changelog:
    Version 0.6
    • Added iConomy 5.x support
    Verions 0.5
    • Other Flying Stuff like Cows
    • Penalty for killing other Stuff..
    Version 0.4
    • Add Config Despawn Parameter
    • Added Debug Parameter
    Version 0.3
    • Minor Bugfix
    • Added Broadcast area to notify Player
    • Text fixes
    Version 0.2
    • Make the Mechanisem on Cannon basis (more than one per Server)
    • Make the Timeout variable
    • Fixup some texts
    • Add some Gambling / Economy (Maybe Cash per Shot and Give some money back per hit)
    Version 0.1
    • Initial Version
    [​IMG]

    Link now works ;-)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
    STiChad, Xaostica and kahlilnc like this.
  2. Offline

    belfedia

    [​IMG]

    Yes when i walk on pressure plate i have "CD: Got Brickblock" message
    I have try to put redwire on every side of the brick and same results...
     
  3. Offline

    Thomas Bucher

    Can you please upload the logfile, so i can see all the debug messages ?
    Would help a lot. ;-)
     
  4. Offline

    belfedia

    Here my server.log

    Code:
    2011-04-21 15:07:17 [INFO] Starting minecraft server version Beta 1.4
    2011-04-21 15:07:17 [INFO] Loading properties
    2011-04-21 15:07:17 [INFO] Starting Minecraft server on [IP server]:25565
    2011-04-21 15:07:17 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-04-21 15:07:17 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-04-21 15:07:17 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-04-21 15:07:17 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-04-21 15:07:17 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-653-g9992fff-b677jnks (MC: 1.4)
    2011-04-21 15:07:18 [INFO] Preparing level "world"
    2011-04-21 15:07:18 [INFO] Preparing start region
    2011-04-21 15:07:19 [INFO] 144 recipes
    2011-04-21 15:07:19 [INFO] Preparing spawn area: 0%
    2011-04-21 15:07:21 [INFO] Preparing spawn area: 24%
    2011-04-21 15:07:22 [INFO] Preparing spawn area: 56%
    2011-04-21 15:07:24 [INFO] [AuthDB] 50 user registrations in database
    2011-04-21 15:07:24 [INFO] [AuthDB] AuthDB plugin 2.1.5 is enabled
    2011-04-21 15:07:24 [INFO] [AuthDB] AuthDB is developed by CraftFire <[email protected]>
    2011-04-21 15:07:24 [INFO] [ChickenHunter] version 0.4 is enabled!
    2011-04-21 15:07:24 [INFO] [ChickenHunter] Permission system not detected, defaulting to Everyone
    2011-04-21 15:07:24 [INFO] CD: Enable Called.. Config Loaded
    2011-04-21 15:07:24 [INFO] [ChickenHunter] Loaded
    2011-04-21 15:07:24 [INFO] Done (0,600s)! For help, type "help" or "?"
    2011-04-21 15:07:35 [INFO] nanard [/Ip Player:1473] logged in with entity id 149
    2011-04-21 15:07:37 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-04-21 15:07:46 [INFO] CD: Redstone Change
    2011-04-21 15:07:46 [INFO] CD: Redstone Change
    2011-04-21 15:07:46 [INFO] CD: Got Brickblock
    2011-04-21 15:07:46 [INFO] CD: Redstone Change
    2011-04-21 15:07:46 [INFO] CD: Redstone Change
    2011-04-21 15:07:46 [INFO] CD: Got Brickblock
    2011-04-21 15:07:46 [INFO] CD: Redstone Change
    2011-04-21 15:07:46 [INFO] CD: Got Brickblock
    2011-04-21 15:07:58 [INFO] CD: Redstone Change
    2011-04-21 15:07:58 [INFO] CD: Redstone Change
    2011-04-21 15:07:58 [INFO] CD: Got Brickblock
    2011-04-21 15:07:58 [INFO] CD: Redstone Change
    2011-04-21 15:07:58 [INFO] CD: Redstone Change
    2011-04-21 15:07:58 [INFO] CD: Got Brickblock
    2011-04-21 15:07:58 [INFO] CD: Redstone Change
    2011-04-21 15:07:58 [INFO] CD: Got Brickblock
    2011-04-21 15:07:58 [INFO] CD: Redstone Change
    2011-04-21 15:07:58 [INFO] CD: Got Brickblock
    2011-04-21 15:07:58 [INFO] CD: Redstone Change
    2011-04-21 15:08:08 [INFO] CD: left click block
    2011-04-21 15:08:08 [INFO] CD: left click dispenser
    2011-04-21 15:08:08 [INFO] CD: show charges
    2011-04-21 15:08:08 [INFO] CD: get Dispensers
    2011-04-21 15:08:08 [INFO] CD: get Dispensers
    2011-04-21 15:08:08 [INFO] CD: Create Dispenser
    2011-04-21 15:08:12 [INFO] CD: left click block
    2011-04-21 15:08:12 [INFO] CD: left click dispenser
    2011-04-21 15:08:12 [INFO] CD: show charges
    2011-04-21 15:08:12 [INFO] CD: get Dispensers
    2011-04-21 15:08:12 [INFO] CD: Get Location
    2011-04-21 15:08:15 [INFO] CD: right click block
    2011-04-21 15:08:15 [INFO] CD: right click dispenser
    2011-04-21 15:08:15 [INFO] CD: its a cannon charge it
    2011-04-21 15:08:15 [INFO] CD: add a Charge
    2011-04-21 15:08:15 [INFO] CD: get Dispensers
    2011-04-21 15:08:15 [INFO] CD: Get Location
    2011-04-21 15:08:18 [INFO] CD: right click block
    2011-04-21 15:08:18 [INFO] CD: right click dispenser
    2011-04-21 15:08:18 [INFO] CD: its a cannon charge it
    2011-04-21 15:08:18 [INFO] CD: add a Charge
    2011-04-21 15:08:18 [INFO] CD: get Dispensers
    2011-04-21 15:08:18 [INFO] CD: Get Location
    2011-04-21 15:08:23 [INFO] CD: Redstone Change
    2011-04-21 15:08:23 [INFO] CD: Redstone Change
    2011-04-21 15:08:23 [INFO] CD: Got Brickblock
    2011-04-21 15:08:23 [INFO] CD: Redstone Change
    2011-04-21 15:08:23 [INFO] CD: Redstone Change
    2011-04-21 15:08:23 [INFO] CD: Got Brickblock
    2011-04-21 15:08:23 [INFO] CD: Redstone Change
    2011-04-21 15:08:23 [INFO] CD: Got Brickblock
    2011-04-21 15:08:30 [INFO] CD: Redstone Change
    2011-04-21 15:08:30 [INFO] CD: Redstone Change
    2011-04-21 15:08:30 [INFO] CD: Got Brickblock
    2011-04-21 15:08:30 [INFO] CD: Redstone Change
    2011-04-21 15:08:30 [INFO] CD: Redstone Change
    2011-04-21 15:08:30 [INFO] CD: Got Brickblock
    2011-04-21 15:08:30 [INFO] CD: Redstone Change
    2011-04-21 15:08:30 [INFO] CD: Got Brickblock
    2011-04-21 15:08:30 [INFO] CD: Redstone Change
    2011-04-21 15:08:30 [INFO] CD: Got Brickblock
    2011-04-21 15:08:30 [INFO] CD: Redstone Change
    2011-04-21 15:08:34 [INFO] nanard lost connection: disconnect.quitting
    2011-04-21 15:08:34 [INFO] Connection reset
    2011-04-21 15:08:38 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-04-21 15:08:42 [INFO] Stopping the server..
    2011-04-21 15:08:42 [INFO] CONSOLE: Stopping the server..
    2011-04-21 15:08:42 [INFO] Stopping server
    2011-04-21 15:08:42 [INFO] CD: Disable Called
    2011-04-21 15:08:42 [INFO] [ChickenHunter] Disabled
    2011-04-21 15:08:42 [INFO] Saving chunks
    
     
  5. Offline

    Thomas Bucher

    It seems you Brickstone doesnt get Powered.. this is very strange..
    I make you another Version, which will check there for this "Misterious".

    I try send you the Link these Days.

    Greetings Thomas
     
  6. Offline

    belfedia

    Thanks for your patience ;)
     
  7. Offline

    Thomas Bucher

    Here you go.. i made you a "nopower" Version.. try this.

    OR

    Just put the pressureplate 2 fields away from the Block ;-)
     
  8. Offline

    belfedia

    That work !!! need to put pressureplate 2 fields away from the block !!! i don't know why but that work :)
    Thanks for your help !!!

    I made some tests
    And redstone circuit have strange effect, some working other no, i don't know why :(
     
  9. Offline

    Thomas Bucher

    New Version Uploaded..

    Now we shot a hell lot of Creatures around.. but DONT hit em, it gives you a penalty!!!
     
  10. Offline

    belfedia

    Thanks another time for your marvellous plugin and your help !

    I have a little problem with other stuff,
    Sometimes a creeper or ghast spawn and explode :(
    Perhaps need a config files for allowed creatures ?
     
  11. Offline

    Thomas Bucher

    I keep that in mind, if i make some improvments..

    Sincerely Thomas
     
  12. Offline

    Faxmashine

    Thanks a lot! I was just searching for minigame-like plugins for my server... Works great! Are you planning to do more plugins of this kind? That would be great, and there aren't that many actual "games" out there...
     
  13. Offline

    KingPin

    any updates for iconomy 5.x? thank you
     
  14. Offline

    Mannan

    Whenever I right-click the dispenser, it shows the "You were charged 2 coins!" message, but it doesn't shoot any chickens .. o.o.
     
  15. Offline

    Thomas Bucher

    Right, its charged.. you need to redwire the brickblock to fire the charges..
    Example see Post #32 or the Picture in Post #1

    Sincerely Thomas
     
  16. Offline

    jotebu

    The Plugin says at startup "[ChickenHunter] is using Permissions", but I cannot find any nodes.
    Are there Permission nodes for using or so?

    Jotebu
     
  17. Offline

    Thomas Bucher

    Yeah it hooks into Permissions. But there are no Permissions defined so far.
    I hade some in my Testing. But when i moved to Currency, i removed those.

    Sincerely Thomas
     
  18. Offline

    s1ck3st

    hi thomas!

    any chance to set this up properly with cb818?
    I just tried&error! Most of the chicken get invisible after they're shot out of the dispenser :(

    Das wäre der Hit wenn das wieder funktioniert!

    Thx, have fun & enjoy your day!
     
  19. Offline

    jotebu

    Thanks for the info.

    We are running bukkit 818 and the plugin works fine ...

    regards Jotebu
     
  20. Offline

    Thomas Bucher

    Sorry da kann ich nix machen..
    Plazier einfach den Dispencer ein wenig hinter dem Spieler, dann klappt das recht gut

    Gruss Thomas
     
  21. Offline

    MrCamping

    Hi i'm runnin the pluging on CB860, with permission 3.15 and iConomy 5.01.

    Everything seems to load normaly. If I click on a dispenser, its says "Charge: 0". When I right click it, it add charges to my dispenser. However, when I put power on, Charges get reduced, but nothing gets out of the dispenser.

    And I don't have any error messages.

    Any help?
    I have * as permissions.
     
  22. Offline

    Thomas Bucher

    Can you please set debug to true and trigger the dispenser once, and post the Log ?

    Thnx Thomas
     
  23. Offline

    MrCamping

    When debug mode is on, my console really get spammed with redstone, leftclick and rightclick messages. Maybe around 30 messages per second. Is it normal?

    When I power on my chicken launcher. I get that. But its hard to know which line comes from the power on as I get so much lines per seconds.
    Code:
    00:10:39 [INFO] CD: left click block
    00:10:39 [INFO] CD: Redstone Change
    00:10:39 [INFO] CD: Redstone Change
    00:10:39 [INFO] CD: Redstone Change
    00:10:39 [INFO] CD: Redstone Change
    00:10:39 [INFO] CD: Got Brickblock
    00:10:39 [INFO] CD: Check for Dispenser
    00:10:39 [INFO] CD: Check Dispenser Timeout
    00:10:39 [INFO] CD: get Dispensers
    00:10:39 [INFO] CD: Get Location
    00:10:39 [INFO] CD: Can shoot -> true
    00:10:39 [INFO] CD: Timeout
    00:10:39 [INFO] CD: check for a Charge
    00:10:39 [INFO] CD: get Dispensers
    00:10:39 [INFO] CD: Get Location
    00:10:39 [INFO] CD: found the Dispenser
    00:10:39 [INFO] CD: Get Charge
    00:10:39 [INFO] CD: we have a charge
    00:10:39 [INFO] CD: Fire a Chicken
    00:10:39 [INFO] CD: get Dispensers
    00:10:39 [INFO] CD: Get Location
    00:10:39 [INFO] CD: Set lastfire for the Dispenser
    00:10:39 [INFO] CD: Set Fire Time
    00:10:39 [INFO] CD: Get Charge
    00:10:39 [INFO] CD: Set Charge
    00:10:39 [INFO] CD: add a Chicken
    00:10:39 [INFO] CD: Start Killthread
    00:10:39 [INFO] CD: startet chicken despawner
    00:10:39 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    00:10:40 [INFO] CD: Redstone Change
    00:10:40 [INFO] CD: Redstone Change
    00:10:40 [INFO] CD: Redstone Change
    00:10:40 [INFO] CD: Redstone Change
    00:10:40 [INFO] CD: Got Brickblock
    00:10:40 [INFO] CD: Check for Dispenser
    00:10:40 [INFO] CD: Check Dispenser Timeout
    00:10:40 [INFO] CD: get Dispensers
    00:10:40 [INFO] CD: Get Location
    00:10:40 [INFO] CD: Can shoot -> false
    00:10:40 [INFO] CD: Not on Timeout
    
     
  24. Offline

    Thomas Bucher

    In fact it is "normal" because it is debugging ;-P
    It seems the chicken gets "created". Did you change something in the Configfile?
    maybe the despawntime ??

    Sincerely Thomas
     
  25. Running 935, latest plugin version, default config.

    Wired up dispenser, but powering it fires no chicken, same problem as guy before me I guess.
     
  26. Offline

    MrCamping

    Yes i've changed a couple of thigs, but most of it are iConomy values. Here's my config file
    Code:
    useiconomy: true
    usepenalty: true
    useboseconomy: false
    shotcost: 3
    shotcooldown: 4000
    otherstuffchance: 3
    debug: true
    hitreward: 10
    otherstuff: false
    despawntime: 8000
    hitpenalty: 50
    broadcastdistance: 250
    
    
     
  27. Offline

    MrCamping

    Is this plugin dead?
    Didn't got an answer in two weeks.
     
  28. Offline

    Thomas Bucher

    Not really.

    It works for me even with this config.
    I am sorry, but i am not able to track down this Problem. (its not reproducable for me)

    What other plugins you use? Maybe the chicken gets "removed" or "despawned" by a config or a plugin.

    EDIT:
    Does it work with shotcost set to 0 (no economy?)

    Sicnerely Thomas
     
  29. Hmm seems to work here as well now :)

    Any chance you can make it so it only rewards when the chicks are being shot with an arrow? Now you can just slap it when it landed. Although you can still do that with a bow+arrow, it still helps :p

    Seems I spoke too soon, on live server it still fails to work...so I guess there is some conflict...

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

    MrCamping

    ... I feel dumb..

    Must be conflicting with WorldGuard mob-spawning flag.
    I'll test it when possible
     
  31. Offline

    strontkever

    doesnt work for me,
    i power it, i hear aclick but no chicken and no charges are taken

    accidently saw on the pics, the wirestone needs to be ON the brick block, now it works

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

Share This Page