MobTrigger
MobTrigger by Pandemoneus
Version 1.04
Always wanted to create amazing dungeons? Lacked a plug-in that spawns mobs when players step on a pressure plate, pull a lever or push a button? MobTrigger offers all of that.
Features:
Create customizable triggers that spawn monsters.
Set a spawn interval, delayed spawning, number of mobs and much more!
Timers run in a separate thread, so don't worry about your CPU load!
Requirements:
Permissions 3.x (optional)
Step by step guide on how to create your first trigger:
- Find a suitable place where you want mobs to spawn. Make sure your cuboid area does not have any blocks inside (or mobs might spawn inside them and suffocate).
- Type /mt select (requires 'mobtrigger.trigger.select' permission)
- With a lever in your hand, mark the corners of the cuboid, by clicking once on the first, then on the second.
- Save your cuboid! Type /mt cuboid save MyFirstCuboid (requires 'mobtrigger.trigger.cuboid.save' permission)
- Now search for the trigger block you want to use (either a lever, button, wooden/stone pressure plate).
- Click that block while NOT having a lever in your hand and still being in selection mode.
- You got everything that we need now! Now type /mt trigger create 0 MyFirstCuboid 0 false 0 1 300 (requires 'mobtrigger.trigger.create' permission)
- Now that we have created the trigger, we need to add mobs to it. Type /mt trigger set pig 3 to make 3 pigs spawn when we trigger it. (requires 'mobtrigger.trigger.create' permission)
- And we are good to go! Type /mt select to exit the selection mode.
- Press the button/lever/pressure plate and see whether it works! (requires 'mobtrigger.trigger.use' permission)
Configuration:
Launch once to create a configuration file.
It is then located at /plugins/MobTrigger/config.yml.
Options are:
- ForceBukkitPermissions: [true/false] - got Permissions installed but still want to use the built-in Bukkit Permission system? then set to true (default: false)
- Trigger.Region.SelectionItemId: [itemID] - simply determines which item is used to select cuboids for the triggers (default: 69 / Lever)
Permission Nodes:
All permission nodes work both Permissions and BukkitPerm wise!
mobtrigger.*: description: Gives access to everything that the plug-in offers mobtrigger.admin.*: description: Enables you to modify everything that does not belong to you default: op mobtrigger.admin.trigger: description: Allows you to modify triggers that do not belong to you default: op mobtrigger.admin.cuboid: description: Allows you to modify cuboids that do not belong to you default: op mobtrigger.trigger.*: description: Gives access to all trigger related commands (excludes admin) mobtrigger.trigger.use: description: Allows you to use triggers default: true mobtrigger.trigger.select: description: Allows you to select triggers and trigger areas default: op mobtrigger.trigger.create: description: Allows you to create, link and reset triggers default: op mobtrigger.trigger.destroy: description: Allows you to remove and unlink triggers default: op mottrigger.trigger.mobids: description: Allows you to view the mob IDs the plug-in uses default: op mobtrigger.trigger.cuboid.*: description: Gives access to all trigger cuboid related commands (excludes admin) mobtrigger.trigger.cuboid.save: description: Allows you to save cuboids default: op mobtrigger.trigger.cuboid.info: description: Allows you to get info about cuboids default: op
Commands:
All commands are case-insensitive.
Aliases: /mobtrigger /mt
Parameter explanations:
Name - explanation: Example
-----
String: Hello
int - a whole number: 3
double - a decimal number: 2.7
boolean: true, false
- /mt select - Toogles selection mode
- /mt mobIDs - Shows a list of all mob IDs used by the plug-in
- /mt cuboid save (String cuboidName) - Saves a selected cuboid under the specified name
- /mt cuboid info (String cuboidName) - Shows information about the specified cuboid
- /mt trigger create (int triggerID) (String cuboidName) (double firstDelay) (boolean isSelfTrigging) (double selfTriggerDelay) (int totalTimes) (double resetTime) - Creates a trigger. Parameters:
- triggerID - the ID of the trigger, using an already existing ID will overwrite that trigger
- cuboidName - the name of the cuboid the mobs will spawn in (see /mt cuboid save)
- firstDelay - the delay in seconds after which the trigger will fire the first time
- isSelfTriggering - determines whether the trigger executes itself again after it was first fired
- selfTriggerDelay - the delay in seconds after which it will execute itself again
- totalTimes - the total amount of times the trigger can be executed before it needs to be reset
- resetTime - the time in seconds after which the trigger resets itself after the very last possible execution
- /mt trigger info - Shows information about the currently selected trigger
- /mt trigger link (int triggerID) - Links a trigger block to a trigger with the specified ID
- /mt trigger unlink - Removes the link from the selected trigger block
- /mt trigger reset (int triggerID) - Reset the trigger with the specified ID, also kills all mobs
- /mt trigger showIDs - Shows a list of all triggers you own
- /mt trigger set (int mobID|String mobName) (int amount) - Sets the amount of mobs spawned by the trigger
Acknowledgements:
Thanks to bekvon for his utility classes
Donations:
Having issues getting this to work. I really love the concept and think it would be super usefull in my server but the commands dont work. In fact I find it odd when I use any command from this plugin (/mt or /mobtrigger) it actually displays the command in chat with the / and all. I tried using the selection mode anyway and I couldn't select anything. Pleas help I really want to use this plugin.
Hello, I am Pandemoneus, the author of this plugin.
Unfortunately, I no longer develop Bukkit plugins (as you can see, the last commit was 4 years ago).
However, my code is open source and can be found in my repository, which you can find if you follow this link: https://github.com/Pandemoneus/MobTrigger
Feel free to modify it as you please.
Thank you, I apreciate your assistance.
Guys VTriggers can do this better and easier than mobtriggers could :(
I know it sucks losing things you're familiar with but variable triggers covers this plugins entire example script with one command!
the above Mobtriggers Example remade in VT
It's that easy. and then there are so many more ways you can customize it
Convert ye heathens!
Anyone taking over or made something familiar besides variable triggers?
please bring this back this is somthing that i want and i'm pretty sure alot of others do to
Is this still working any how of bringing this back alive?
Well, I spent hours trying to set this up in a zombie apocalypse world last night, and today I get on, and every time I step on the plates... nothing. Whenever I type /mt select... it just says /mt... to everything.
Any advice?
1. It seems TotalTimes and ResetTime doesnt work properly.
I set TotalTimes: 1 ResetTime: 300.0
But it triggered everytime when I clicked the button(or plate).
2. It doesnt recognize mobName when I use '/mt trigger set' command.
So I have to use mobIDs.
3. Why normal spider is removed?
Any chance we could send custom messages to the triggering individual and/or everyone on the server? You could then have the monsters 'talk' or have some other announcement, like the tirggerer sees "A wave of monsters rushes toward you!" and everyone else on the server sees "So-and-so has been besieged by monsters!"
Would love to see this support sheep and their color variations. Otherwise works lovely.