MobStation
Introduction
1.8 COMPATIBLE
This plugin allows players to create Potion dispensing mobs. All you have to do is Sneak Right Click the MobStation with an empty glass bottle and BOOM! It can be a potion of your choice. Add this to any type of server, and your players can have easy access to potions! No more do you have to go through all the searching for materials!
Features
- Permissions Access(OP by Default)
- Create MobStations that dispense potions
- Custom Mob Names
- Baby Mobs
- Custom Mob Health
- Checks if players inventory is Full
- Custom Give Message
Permissions
- ms.reload
- ms.spawn.<mob> These mobs are laid out in the Config.yml
Usage
When using this plugin there is only a few simple commands! /ms or /mobstation Help /ms or /mobstation spawn <mob>
Changing Config
In the config please make sure you follow everything that is written after a #. This will help guide you and make sure that you setup everything right!
Small Notes
Just in case you choose not to read those and read these. In the name color please refer to http:ess.khhq.net/mc/ for the letter or number to add. This plugin currently only supports one color names. That means no Bold Red or Italic Blue.
Video Tutorial
Coming Soon
Planned Features
- Every Mob
- MobStations to follow players who spawn them
- Stationary Mobs (that dont move or move back)
- Vault Hook for Economy!
- Ability to click with any item and get any Item
- Second bar telling the creator of mob station
- More Customization for the mobs
- In Game Commands for Setting names, and data
Known Bugs
If inventory is full you can not use the MobStation. As it will not fill the item up.
@MoejoeAw44
Also the inventory full message is something that is always on. It will let players know when their inventory is full. I can add the feature to disable it though
@MoejoeAw44
Sorry been very busy, but this plugin only works with empty glass bottles and I tested it the only way you get the inventory full message is if you have no free slots left in your inventory. Also there currently isn't an efficient way for it to be placed in your hand. There will be update later today that adds mulch color support though.
Hello?
@Dabuseck
Basically what I meant was, in your plugin, if you try to fill your inventory with something either it being potions (via your plugin) or soups through the vanilla mooshroom, I get spammed the message saying "MobStation > Your inventory is full!". The messages are disabled, but that message still comes up. Is there a way to remove it, or disable it?
@MoejoeAw44
First part doesnt make all that much sense. Also Im in the works of adding all the mobs. Your original post wasn't 100% clear. So I made what I thought. I will try and get this updated soon!
Found a glitch. If a player is forced to get an item "/give" or vanilla Mooshroom soup, for example, the Inventory Full message pops up, although the messages are disabled.
P.S, again, let me know when you can try to make the plugin "more smooth", in your words, and by that I mean, instead of the potion moving to another spot in your inventory, it just "fills" the bottle, or gives the appearance of such. Also, I couldn't get Mooshrooms as a mob to work,
@Dabuseck
:)
@MoejoeAw44
Working on it now, and I will tmrw if I dont get it tonight!
@Dabuseck
c;
Can't wait for the update on the cancellation. It will make the plugin feel a lot smoother ^.^
@MoejoeAw44
Yes I uploaded the wrong Build. Try the new one c:
@MoejoeAw44
Well if you click them with a stack of glass bottles it will just around the inventory. Also I have tried cancelling the event. They potion still gets drank. I have event tried timers and everything. I will keep working at trying to implement this. But also please download the new upload of V1.1 when its up. I forgot to add a few bit of code back after messing around with the players drinking the potion.
P.S: Found a glitch, with the new update. If you have 64 glass bottles, it doesn't make the stack 63, it just deletes the whole stack, and gives you 1 potion.
@Dabuseck
Inefficient, meaning, TPS wise, would it take up more RAM, and lower TPS?
All I know is what I said down there, was more "smooth" looking. I guess what I'm looking for is "smooth", instead of teleporting around your inventory, you know? My developer told me that disabling some event, not sure which one, right when the potion is given, would fix the issue
Version 1.1
Is now out!
@MoejoeAw44
Yes it only makes one right now. Also how its coded is basically a /give. I could add a timer on it but it would be inefficient for my code and server performance.
@Dabuseck
So, you will add it so it only makes it one, when they click the animal?
Would it be possible instead of using some sort of event to replace the bottle with a /give type feature? Or maybe even cancel out the event of them drinking the potion, within say "0.5" seconds of them making the potion?
@MoejoeAw44
Its a bug in Bukkit for playerentityinteractevent currently that they will automatically drink them. Also I will work on adding that minus 1 feature. I am fairly new coding. Also that 1000 health would take a very long time to kill, along with its regeneration x100 set in code they will most likely never get killed.
@Dabuseck
For the stack, I meant, if I click that mob with a stack of bottles, I want 1 potion for that 1 click, making the stack go down to 63 instead of 64.
Why would the player instantly drink them? They have to hold down the potion, do they not?
P.S: If the mob is @ 1000 health, they never die? Or are they full health.
@MoejoeAw44
For me when I clicked with a stack it gave me a stack. Also what do you mean vanilla soup? Also I will add a feature to enable or disable the give message. The health is the health of that mob. So say you wanted them in a spawn but didn't want them to get killed you can set the health to a max of 1000 and the mob has regeneration potions on them.
Also if you make it stay in the same item slot the player will instantly drink that potion so it has to move to a different slot.
Just tested it, and I have 2 requests. When the player clicks the mob with a stack of bottles, or more than 1, it gives them a stacked version. If possible, could you be able to make it mimic vanilla soup as much as possible? As in, 1 by 1, and no message, IF POSSIBLE.
I don't want to push you on this update, but that ^ up there, is what I'm looking for. But for the most part, the plugin works as intended.
I also don't understand what " Health: 1000" is.. ;c
EDIT: And aswell, as instead of taking away the bottle, and putting the potion in their inventory, would you be able to make it so when the player clicks the mob with the bottle, it gives it the aprearence the bottle was filled, by making the bittle stay where it is?
Enless you;ve got stacked bottles, then just fill the inventory up, from hotbar, once hotbar is full, to the inventory? :3
Sorry if I sound greedy ;-;