Inactive [FUN] CraftBall - Play sports

Discussion in 'Inactive/Unsupported Plugins' started by nisovin, Jun 4, 2011.

  1. CraftBall - Play ball-related sports on your server!

    This plugin has been taken over by JayEffKay:
    http://dev.bukkit.org/server-mods/craftball/

    This plugin allows you to play sports like soccer on your server. A video is the best way to show how the plugin works, so here you go:



    Usage

    Just throw (with Q usually) your configured ball item onto your configured field, and run up to the ball to kick it. Server ops can use the /craftballreload command to reload the configuration.

    Configuration

    The zip file contains an example configuration file. This is what it looks like:

    Code:
    fields:
        field1:
            region:
                - 314,66
                - 330,66
                - 330,84
                - 314,84
            region-y: 78
            ball-item: 341
            enable-kick: true
            horizontal-kick-power: 0.8
            vertical-kick-power: 0.1
            enable-throw: true
            throw-power: 0.5
            pickup-delay: 20
    To define a field region, you must list each point on the region. Any polygon will work. Remember that with rectangles you will need to specify all four corners. The coordinates are x,z coordinates, and the y coordinate for the field is specified by region-y. The easiest way to get coordinates is to use the wand tool from WorldEdit, or any other plugin that can give block coordinates.

    If you're trying to find coordinates just using F3, then round down your X and Z coordinates, and subtract 2.62 from your Y coordinate. For example, if your current position given by F3 is 57.41, 67.62, 130.59, then your X is 57, your Z is 130, and your Y is 65.

    The remaining options are:
    • ball-item: The item id of the ball object (341 is a slime ball)
    • enable-kick: Whether to allow kicking for this field
    • horizontal-kick-power: The initial horizontal velocity when kicking
    • vertical-kick-power: The initial vertical velocity when kicking
    • enable-throw: Whether to enable the throw speed modifier for this field
    • throw-power: The initial velocity when throwing
    • pickup-delay: The delay before an item can be picked up (kicked) after throwing, in server ticks (20 ticks per second)
     
    JayEffKay, tris-broXP and kahlilnc like this.
  2. Oh my this is beautiful. Can you add some rolling distance configs?
     
  3. I smile.
     
  4. I tested this works with 3.0+ permissions and its fun. :)
     
  5. Offline

    NeonJ

    This is interesting, but the configuration isn't explained at all. And why is there only 1 Y-coord? I wanted to make basketball.
     
  6. nooooooooo. a ring-shaped thing in minecraft???????? confused :confused:
     
  7. Should I round on the points?

    Once I figure this out lol I will make a vid. :) or some else can.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  8. That's what the kick power options are for.
    I'm not sure what was difficult to understand about the config options, but I added explanations anyway. The y-coord is just for the actual playing field (ground). You could still do basketball if you wanted, though dribbling is basically impossible. But if you increase the throw power slightly you could at least try shooting hoops and passing.
    The slimeball has been in the game for a while! I've done nothing wrong! I swear it!

    I added some further explanation to the config values, including how to use your F3 coordinates to find the field coordinates.

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

    Hant

    really funny!
     
  10. Offline

    NeonJ

    I've tried messing with the options for ages, but every time it lets me pick up the apple [item] and it just throws normal distance. Nothing changes this, so I'm not sure what I'm doing wrong...

    Except there was one setting with made me throw the apple into orbit, but I couldn't reproduce that.
     
  11. Are you standing on a field when you throw? What does your config look like?
     
  12. Offline

    dR!V3xXx

    Hey it looks great, but I have a problem with the config. I don't know which coordinates I have to write in the config. In the config file are 4 lines with coordinates but I don't know which coordinate I write where. I hope you understand my problem.
    Sorry for my bad english, I'm German studend :)
     
  13. Offline

    AlphaPapa

  14. Offline

    Kalemar

    Could you make it so you don't need a region... just make all slimes balls? would make things a bit easier
     
  15. Offline

    Ggd07

    That would be a stupid thing to do
     
  16. Offline

    Kalemar

  17. Offline

    ruzzle

    How to set a region with worldedit
    1. Touch 4 corners with a wand, (//wand).
    2. Copy the first and the third number in the text document.
    3. Example: Second Position set to: (100.0,69.0,-94.0) (15565)
    You only need the following numbers 100 and -94
    4. Do this for all the corners. Corner: 1,2,3,4
    5. Paste the numbers in the config.yml like this
    field1:
    region:
    - 100,-94
    (not minus -100 but - 100)
    Do this for all the corners.
    6. The second number is for the y -region.
    like this: region-y: 69
    7. If you're an op type /craftballreload

    Hope this helps ;)
     
  18. Offline

    NeonJ

    Code:
    fields:
        field1:
            region:
                - -53,152
                - -65,152
                - -65,145
                - -53,145
            region-y: 68
            ball-item: 35
            enable-kick: false
            horizontal-kick-power: 0.8
            vertical-kick-power: 0.1
            enable-throw: true
            throw-power: 2.0
            pickup-delay: 50
    Throwing the wool inside the stadium does nothing

    EDIT: It appears the /craftballreload command isn't working, which explains why.
     
  19. Well, one, I want people to be able to define whatever item they want. Two, why would you need to kick something all over the world anyway? Three, you're probably going to want to be able to pick the ball up when it goes out of bounds. Basically, for most people, I think the way it is set up will be preferable.
    Are you a server op?
     
  20. Hi im having trouble createing a zone, dont know if its me or that i got negative values.

    Code:
    fields:
        sandvillage:
            region:
                - 91,-156
                - 106,-156
                - 106,-135
                - 91,-135
            region-y: 66
            ball-item: 341
            enable-kick: true
            horizontal-kick-power: 0.8
            vertical-kick-power: 0.1
            enable-throw: true
            throw-power: 0.5
            pickup-delay: 20
    Thanks for your time.

    Dont listen to me im an idiot, got it working
    Code:
    fields:
        sandvillage:
            region:
                - -91,-156
                - -106,-156
                - -106,-135
                - -91,-135
            region-y: 66
            ball-item: 341
            enable-kick: true
            horizontal-kick-power: 0.8
            vertical-kick-power: 0.1
            enable-throw: true
            throw-power: 0.5
            pickup-delay: 20
    thats what was wrong

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

    NeonJ

    Yeah. I expected the command to be given to people with the '*' permission. xD Permissions support plx =S
     
  22. Seems unnecessary to add permissions for one command that can only be used by someone who has access to the config file anyway. Just add yourself as an op and you're fine.
     
    Ggd07 likes this.
  23. Offline

    Kalemar

    Yes. I run a server and have many mods, some customized for my own use. I understand what you mean now by wanting to pick up the ball. With the soccer mod it is free flowing but still allows for you to pick it up but it is a bit hit and miss.

    Perhaps you will add a way to set a field dynamically in game rather than having to create a config.

    I have a few young people playing and they will find this mod a lot of fun. Well done so far.
     
  24. Offline

    jeremy10tie

    it would be in version 1.1 scores, running, goal of noise etc.
     
  25. Offline

    MCrofl777

    very cool plugin!
    I just created a field...
    But now I kick the ball 3 times and then i pick it up
    but i don't want to pick it up, I want to kick it!

    can you fix or lock the "pick up" on the field

    sorry for my bad english :D
    greetings from germany
     
  26. Offline

    NeonJ

    Yes, but I dislike using the op file because it sends you 2 messages every time you get a command wrong. It's pretty annoying.
     
  27. Offline

    Tem4uk

    help plz, i put up ball on the field, but always pick up him, what can i do?


    this is my config

    fields:
    field1:
    region:
    - -232,348
    - -218,348
    - -218,394
    - -232,394
    region-y: 65
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.1
    enable-throw: true
    throw-power: 0.5
    pickup-delay: 20
     
  28. Offline

    mattd75

    also having problems. always pick up the ball rather then kick it....

    fields:
    field1:
    region:
    - 416,- 13
    - 423,- 13
    - 416,- 0
    - 423,- 0
    region-y: 63
    ball-item: 341
    enable-kick: true
    horizontal-kick-power: 0.8
    vertical-kick-power: 0.1
    enable-throw: false
    throw-power: 0.5
    pickup-delay: 50
     
  29. Code:
    fields:
        field1:
            region:
                - -176,159
                - -192,159
                - -192,133
                - -176,133
            region-y: 63
            ball-item: 341
            enable-kick: true
            horizontal-kick-power: 0.8
            vertical-kick-power: 0.1
            enable-throw: true
            throw-power: 0.5
            pickup-delay: 20

    There is my config But I do not no what I am doing wrong I do not get any errors.
     
  30. Offline

    ensirius

    didnt work.
    Code:
    fields:
        sandy:
            region:
                - 102,120
                - 102,107
                - 124,107
                - 124,120
            region-y: 64
            ball-item: 341
            enable-kick: true
            horizontal-kick-power: 0.8
            vertical-kick-power: 0.1
            enable-throw: true
            throw-power: 1
            pickup-delay: 20
    
     

Share This Page