Slimeball Pokeballs

Discussion in 'Archived: Plugin Requests' started by EpicMule, Oct 26, 2011.

  1. Offline

    EpicMule

    I haven't seen a poke ball mod yet! So i have this idea that we could make slime balls into pokeballs.
    You could throw the slime ball and if it hits the mob, it captures it. if you throw the ball again it releases it.

    to better explain what I'm trying to say goto this video: http://www.youtube.com/watch?v=57jBzlTo0lU
     
    ArcheCane and DrAgonmoray like this.
  2. Offline

    DrAgonmoray

    Sounds neat.
     
  3. Offline

    Musaddict

    You obviously haven't seen this. It only works on single player, but it pretty much puts Pokemon Silver onto your maps, lol.
     
  4. Offline

    EpicMule

    I've seen it. But I'm talking about multiplayer.
     
  5. Offline

    ArcheCane

    Hmm, it sounds possible... but sadly I don't know how. :p
     
  6. Offline

    EpicMule

    yea like when the ball hits a mob, it will tp it to someplace, then when u throw the ball again, it will tp it back
     
  7. Uhm... no... When a ball hits a mob remove the mob, add an entry to a HashMap and give the ball a data value. later on, when the ball is thrown again read out it's data value, use the hash map to see which mob was in, spawn the mob, delete the entry from the map. :D
    Just not sure if you can freely edit a slime balls data value.
     
  8. Offline

    acuddlyheadcrab

    Yeah this may need spout or somefin. You might as well, since then you could get a custom item texture for the ball. Or just a custom item...

    EDIT: Oh wait, except how would you tell if a dropped item hits an entity? You could just try to get the targeted entity using onPlayerInteract, but that wouldn't be cool if you weren't looking at the entity...
     
  9. Uhm... no...
    I know how... :p
    Nah, there's a better solution... :D

    @EpicMule: I'm working on it! :)
     
  10. Offline

    EpicMule

    @V10lator, iloveyou :D

    also sorry about my noobiness in this topic, i know nothing about javascript
     
  11. Offline

    Marcos Cosmos

    There has been a plugin that did this called pokeblocks but it has been inactive since bukkit version 818, or thereabouts.

    I'm interested in seeing what comes of the new pokeplugin though :3
     
  12. Wanna marry me? :D
    No problem, just one thing, we're developing in Java, not JavaScript. :p


    (Video will be ready to view in around 30 minutes).

    To do:
    • Implement a method to give every filled ball it's own unique ID (right now they all get 5, so you can have only one filled ball at a time). Done!
    • Make slimeballs non stackable (stacking overwrites the ID). Done.
    • Add persistence.
     
  13. Offline

    acuddlyheadcrab

    Well I meant in case you couldn't add data values to slimeballs.

    How...? HOW?!..
     
  14. Wait for the release, it will (as always) contain the sources in the jar file. And it will be soon (look at the to do list one post above yours). :)
    Till then a hint: A Item is a entity, a entity has the method getNearbyEntities(), a mob is a entity, too... ;)
     
  15. Offline

    acuddlyheadcrab

    oh hehe ;D Mkay. I'll do a lil noob challenge for myself in the meantime.

    @V10lator
    oh hehe ;D Mkay. I'll do a lil noob challenge for myself in the meantime.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  16. I will setup a page on bukkitDev later, in the meantime you can download it <Edit by Moderator: Redacted mediafire url>

    To throw a ball you have to right click.

    Update: <Edit by Moderator: Redacted mediafire url>

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 12, 2016
  17. Offline

    EpicMule

     
    Last edited by a moderator: Nov 12, 2016
  18. Sounds like a outdated bukkit version, which is the version you are using?

    @EpicMule: Another update with minor bugfixes: http://dev.bukkit.org/server-mods/pokeslime/ :)
     
  19. Offline

    user_43347

     
    Last edited by a moderator: Nov 12, 2016
  20. I don't kill mobs for catching them, I remove them (entity.remove(); ) - so they won't drop anything. :)
     
  21. Offline

    EpicMule

    I've got it working now :D. srry with the delay
     

Share This Page