Custom Fishing Rod Cast, Egg & Snowball Knockback

Discussion in 'Plugin Requests' started by cunningcreep, Aug 23, 2018.

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


    Plugin category: Mechanics

    Minecraft version: 1.8.9

    Suggested name: ProjectilesKnockback

    What I want: A plugin to:
    - Customize the knockback dealt by the right click fishing rod cast.
    - Also customize the knockback dealt by Snowballs and Eggs
    - Knockback will be uniform across all the 3 projectiles unless someone has the time to make it so that all 3 are configurable
    - Configurable X and Y values for the knockback (1 value is enough but configurable x and y values would be amazing)

    Ideas for commands: /projkb (x value) (y value) OR /projkb (value), /projkb reload

    Ideas for permissions: OP

    When I'd like it by: Within a week
    Last edited: Aug 25, 2018
  2. Offline


    Actually I am fine with just having fishing rod cast knockback now lol because I don't see this thread working out
  3. Online


    I'm pretty sure i've made what you want, i'm just making the messages customizable and then it's done.
    Gonna edit this post when i'm done.
    EDIT: Here is the download:
    /projkb <reload/snowball/egg> [X value] [Y value] [Z value]

    Only OP players.

    Default config.yml:
      X: 0.0
      Y: 0.0
      Z: 0.0
      X: 0.0
      Y: 0.0
      Z: 0.0
    Default messages.yml:
    # Use {projectile} to replace text with snowball or egg. (depending on input)
    # Use {values} to replace text with the values of snowball or egg.
    # Messages you can use these:
    # All messages that contains these by default.
    No-Permission: "&cYou do not have permission to use this command!"
    Usage: "&cCorrect Usage: /projkb <reload/snowball/egg> [X value] [Y value] [Z value]"
    Reloading: "&aReloading..."
    Reloaded: "&aReload complete!"
    Values-Needed: "&cValues needed."
    X-Need-Value: "&cArgument 2 needs to be the X value for &6{projectile}."
    Y-Need-Value: "&cArgument 3 needs to be the Y value for &6{projectile}."
    Z-Need-Value: "&cArgument 4 needs to be the Z value for &6{projectile}."
    New-Values: "&aYou've now set &6{projectile}&a's values to &6{values}."
    '/projkb reload' reloads both the config.yml and the messages.yml. I hope this is to your liking. :)
    Last edited: Aug 26, 2018
  4. Offline


    Thanks! Actually, in the last post I meant as in I'm okay with only having the fishing rod cast knockback customizable, so I'd still like to have that feature implemented. Will try it out later today, anyway thanks a lot!
  5. Online


    I see, i added 'Rod' to it, now you can edit the knockback for 'Rod', 'Snowball' and 'Egg' in the config. I added a 'Enabled' option aswell to enable or disable the custom knockback, hope you like it. :)
    Link from before updated.
    cunningcreep likes this.
  6. Offline


    Okay, I think I need to clear up the post a little bit, because it was very unclear, I'm sorry! This must be frustrating for you, because I think you might have to do a slight re-write. :(:'(

    So, basically, I meant 'custom knockback' as in basically vanilla snowball/egg/rod knockback, but the X and Y values would be changing the multiplier of the vanilla knockback to be more horizontal or more vertical, with X being horizontal and Y being vertical. For example:

    /projkb rod 0.8 0.5
    That would mean the rod would do 0.8x the vanilla's rod knockback horizontally, and 0.5x the vanilla's knockback vertically.

    Again, I apologize deeply for not clearing up the topic. I'M REALLY SORRY.:oops:

    p.s.: in addition to changing it into vanilla kb w/ multipliers, can you please add a /projkb randomize? (x) (y) basically adds those values on top of the multiplier, so for example:

    /projkb randomize 0.1 0.1

    This means that it will pick a value between 0-0.1 to add to the original multiplier set by /projkb (item) (x) (y).
    It would be really nice if you could also add this.:p:)
  7. Online


    I see, i hope this is what you want:
    EDIT: Btw it was no problem. :7
  8. Offline


    Ok, snowball and egg does work perfectly.

    The rod is slightly buggy though. It seems like there is less knockback if the bobber is pulled immediately when it hits the player.

    Also, sometimes it would pull players into me when they jump. Probably related to the bug above.
    Take a look at this:
    I would like it if you could fix this.
    EDIT: only happens when you pull the rod back

    Another issue, is that the randomize feature is supposed to apply the random value every time a snowball/egg/rod hits a player, and adds a little bit of randomness on top of the default settings. X and Z's randomized value also should be same.
    So if the value is 1.2, 0.9, 1.2:
    And randomness value is 0.2, 0.1, 0.2,

    It should apply a random value between 1.2-1.4, 0.9-1.0, 1.2-1.4 on every hit. X and Z should be the same random value.
    Last edited: Aug 29, 2018
  9. Offline


    So, are you still working on it or not? I've pretty much realized that in the plugin requests section, more than half of the requests are filled in by you which means you must be really busy but I would really like it if this issue can be fixed,
  10. Online


    Last edited: Sep 16, 2018
  11. Offline


    I think i have an idea to fix the issue, can you make it so that the knockback only registers if a hit is registered? apparently the knockback registers even when a player is in its invincibility frame.
  12. Online


Thread Status:
Not open for further replies.

Share This Page