1. Trying to use the shop? Use /shop tutorial in-game for a quick overview. Visit here for a command overview.

Monster Snatcher

Discussion in 'TimGaming Development' started by Fahlur, May 20, 2016.

  1. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    [IMG]


    [IMG]

    New replacement for the old mob capture plugin. Featuring fully configurable. The ability to capture a Minecraft mob with an egg!

    All mobs that have a spawn egg can be captured using this plugin. However each and every mob configuration is adjustable in the plugin. You can set 1.0 for 100% chance capture or 0.5 for 50% chance capture. 0.1 for 10% or 0 for not capturable at all!


    Note: If the log shows a date that is the current date at hand, it may still yet be updated before midnight that day!

    [IMG]

    Current Progress Log:
    Note: This log is updated over time and will have a time-stamp at the top of each day of logs made!
    • May 20, 2016:
      • Generated plugin project dubbed MonsterSnatcher
      • Created configuration file for every current mob in minecraft with a spawn egg in 1.9.2
      • Created planned placeholders for the new spawn eggs and new mobs with spawn eggs in 1.10 for easy update
      • Created plugin.yml with plugin name, version, description, commands, permissions
      • Created starting template for main plugin file
      • imported all neccesary dependancies (e.g. spigot/bukkit, vault)
      • Created GitHub Repository set for MonsterSnatcher
      • Generated readme file on github, ready to be populated with information
    • May 21, 2016
      • Created event to check for player hitting mobs with eggs.
      • Checked event to make sure its instance of egg and the shooter was a player
      • Placed in security to prevent players from egging "Tamed" mobs
      • Implemented permissions for checking if player has appropriate permissions
      • Implemented % chance formula for mob chances
    • May 22, 2016
      • Created actual mob catching mechanism with chance to get egg
      • Plugin pretty much done now testing all catch-able mobs then working on the roundabouts of the plugin to make it nicer.
    • May 23, 2016
      • Added message for player if the mob is not inheritable capture-able due to no spawn egg or is disabled
      • Added opOverride functionality
      • Added plugin reload command "/ms reload" for reloading the config if updated
      • Removed enderman from list, its not possible to hit them anyways with a projectile.
      • Cleaned up some code
      • Updated the Github Repository.
    • June 20, 2016
      • Added capability of blocking changing spawners with mob eggs
      • Added perm node to override above item, to those that allowed the ability if must.
      • Plugin complete and pushed to Timcraft testing server. Awaiting approval and transference to main server.

    [IMG]

    Current Chance Tables:
    These are the chances that are pre-defined in the configuration file by default

    10% Chance of Capture
    Bat, Chicken, Cow, Pig, Sheep, Squid, Ocelot, Wolf

    8% Chance of Capture
    Mushroom_Cow, Horse

    0% (No) Chance of Capture
    Cave_Spider, Spider, Pig_Zombie, Blaze, Creeper, Endermite, Ghast, Guardian, Magma_Cube, Shulker, Silverfish, Skeleton, Slime, Witch, Zombie, Villager

    Capturable but only returns normal variant egg (Horse)
    Skeleton Horse, Zombie Horse, Donkey, Mule

    Not Available in plugin do to no spawn egg
    Ender Dragon, Wither Boss, Iron Golem, Snow Golem

    Not Available in plugin because not possible to catch with egg
    Enderman

    [IMG]

    [IMG]
    MarvinTheRobot likes this.
  2. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    [IMG]

    Log has been updated, as well as posted a current chance tables




  3. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    Me capturing a horse, got really lucky!

    [IMG]
  4. Ty_FTW! Member

    Minecraft Username:
    Ty_FTW
    Wait, so its now possible to egg villagers? :D
  5. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    its always possible through the last plugin, it just was disabled. If it had a mob egg in game it was catchable, Tims just disabled them. But at this point theres no reason why mooshrooms are left exclusive. however villagers may be left exclusive for a bit for events only. We will see later on.
  6. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    Complete just awaiting instance to be placed in after successful test on the dev server :)
  7. lightningfactor Distinguished Member

    Minecraft Username:
    LightningFactor
    I don't really like the idea of being about to capture villagers... Personally, I feel that it would make the items too easy to obtain, and if I wasn't mistaken, one of the issues which were flagged in the town hall meeting is that the game is currently too easy..

    At the moment, villager mob eggs are rare, and the only way to get them is by voting and events (if im not mistaken) I feel like we should keep it like this, at least until we see how easy/hard the new map is going to be.
  8. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    as per stated in an earlier post


    should also make this be a mentioning point that this is entirely subject to change


    As I did mention to pilot in the message I sent him

    its just default because thats how it was made default for the time being. Also just to be fair anyways 4% is a dam low chance. but again I did say to adjust values accordingly.
  9. Elmier Distinguished Member

    Minecraft Username:
    Elmier
    Well current spawn has villagers there 24/7 so abuse those fuckers :)
  10. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    too late its fixed :p
  11. Elmier Distinguished Member

    Minecraft Username:
    Elmier
    Fahlur, get in my egg.
  12. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
  13. lightningfactor Distinguished Member

    Minecraft Username:
    LightningFactor

    Yes, I read this, however I just wanted to add my opinion on the matter...
  14. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    We wont see Polar bears in 1.10 till spigot adds this to their API. Monster snatcher cant capture one because there's no polar bear api which in turn they dont naturally spawn at all, only way to spawn them is commands or (vanilla/creative) spawn egg
  15. xxmxxapple Distinguished Member

    Minecraft Username:
    Corrupt_Apple
    I tried capturing my horses to relocate them, but it didn't allow me: "[Monster Snatcher] You are unable to capture tamed mobs."
    :(
  16. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    Yea next update I want to make it so you can capture your tamed mobs.. due note spawn eggs don't put the same breed down its still vanilla random...
  17. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    Fixed Recent Issue with capturing. Turned out to be a change in world guard event prioritizing. So I just set the priority of my event to Highest so its last to be loaded and therefore when the event is canceled by WorldGuard it will be detected in MonsterSnatcher and prevent the capture of mobs in other protections
  18. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    • Fixed bug related to throwing eggs at a item frame and it giving un-catchable entity
    • made babies uncatchable, with unique message
    • fixed bug with catching mobs in other prots
    • made it so owners can catch their own tamed mobs
    • Still unable to fix polar bear issue at this time
    • Looking into testing with llamas
    • Looking into utilizing the "action bar" for the messages rather than chat
  19. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    Q: So bug about polar bears? Llamas?

    Answer:
    This is not a MonsterSnatcher Bug am afraid. This is entirely spigot.
    So the following spawn eggs will not be in MonsterSnatcher until spigot gets this done...

    (Well they will be but default to 0 (un-catchable) until it is fixed.)
    (Using actual entity name setup)

    LLAMA
    POLAR_BEAR
    ELDER_GUARDIAN
    HUSK
    EVOKER
    MULE
    DONKEY
    VINDICTATOR
    VEX
    STRAY
    SKELETON_HORSE
    WITHER_SKELETON
    ZOMBIE_HORSE
    ZOMBIE_VILLAGER



    Other Notes
    Fixed issue with /ms reload not reloading the config properly
  20. Fahlur Exalted Member

    Minecraft Username:
    Fahlur
    Replaced chat alerts with ActionBar Alerts. no more chat spam!

    [IMG]

Share This Page