Meta Mobs
Description
What is it?
This plugin allows the implementation of custom super entities into other plugins. It gives developers the ability to construct entities out of other entities for use in their plugins.
Config
This plugin comes with built-in 'Test' entities for showcase and code testing purposes. In the config file there is only a single parameter whether or not to allow the spawning of these test entities.
Commands
These are the commands to spawn the various test entities if it is allowed. To use these commands you must be an OP:
- /MetaMobs G - Spawn a Giant. This is just a normal Giant that I personally used for size comparison.
- /MetaMobs D - Spawn a Dalek. This is special meta-mob prototype that I plan on using in my TARDIS plugin.
- /MetaMobs M - Spawn a Minecart Tower. This was used for testing non-living entities for the base entity along with falling blocks as part of the entity structure. It is a minecart with a column of water blocks going up and then a platform at the top with creepers standing on it.
- /MetaMobs C - Spawn a Massive Creeper. This is one of my favorite. It is a creeper made of creepers (and a few cows).
- /MetaMobs B - Spawn a Blaze Tower. I made this as an example for the tutorial.
All of the test mobs only contain one active mob, so none of the other mobs they are constructed of will actually do anything. The Dalek is the only really dangerous one (it can one-shot you) as it was actually designed to be used in a plugin whereas the creeper, per say, was just for fun (however it does contain a single real creeper to control its movement)
Permissions
None, you just need to be an OP and have the parameter in the config file set to true to spawn any of the test mobs if you wish.
Images
Massive Creeper:
Minecart Tower:
Dalek Prototype:
Blaze Tower:
NEW is V.0.2
API Changes
- Made the spawn reason for any Meta Mob 'CUSTOM'
- Added the ability to make a Meta Mob drop their main entity's loot upon death
Tutorial
http://forums.bukkit.org/threads/api-meta-mobs.264676/
Source
https://bitbucket.org/Jogy34/meta-mobs/src
To Do
If anyone has any ideas please feel free to share them.
Known Issues
- When a meta mob uses blocks as part of its construction they can act fairly glitchy.
If anyone finds any please alert me about them.
@Jogy34
Will you be updating this plugin to 1.8.7?
When attempt to use MetaMobs v.0.2 on my Spigot 1.7.10 server, the plugin doesn't load, throwing this error.
EDIT: After about 10 seconds of testing, I think I'll try to switch over to spigot 1.7.9. Seems to work fine with it.
@Paully104
If you are actually using the plugin I can make it so that a custom event is sent out when a MetaMob is spawned, damaged, etc... and you could modify it through that.
If you're trying to change it without having to use the plugin, I'm not sure as the health system is unique to the MetaMobs. What you're doing is modifying each of the entities that the MetaMob is composed of. In order to change it like that, I could make it so that the setMaxHealth() functions of the follower entities will modify the MetaMobs health but that can end up being a waste as could end up being called hundreds of times for the same reason. If it were just the main entity, that wouldn't be a problem but there's not guarantee that the main entity would be able to do that as it can be any of the normal minecraft entities or anyone's custom entity and checking the health every tick can also be a waste especially since they don't have to correspond.
@Jogy34 A request I have, when the monsters spawn I tried to catch their health in my event handler by using if(event.getReason() == reason.Custom(), double health = event.getentity.gethealth + 500, event.getentity.setmaxhealth(health). Basically the issue is i set the max health of the entity that spawns using the /metamob command but then it doesn't seem to effect it at all. This would be nice because I use my rpg plugin to mess around a good deal and the ability to set their health depending on the area level would be fun ^^.
O.O XD cool
I really wanted to make something similar... but i was not enought experimented to do that. I'm happy that someone did that!
Is it possible to make that you can create files in a special format(.mob for example) that allows you to create your own mobs? Or make entities that a player can control? This plugin has really, really, really, really, really, huge potential.
This plugin shows huge potential! I can't wait to see what people make with this...