BatBoxes
BatBoxes
Description
Instead of bats being boring, useless, and only spawning in caves, BatBoxes adds more fun to bats and creates a cooler experience from them.
Current Features
- Upon opening a chest BatBoxes will spawn a bat from the chest.
- The bat spawns on a 5% chance. (can be changed in the config file)
- If the chest is a double chest, two bats will spawn.
- Permissions
- Individual enable and disable of the spawning of bats (this can be disabled by admins).
Configurations
config.yml
bat_spawn_chance: 5 spawn_two_from_doublechest: true light_level_for_spawn: 15 allow_player_toggles: true worlds_to_spawn_in: - world - world_nether - world_the_end player_toggles: Doamax: spawn: false
Permissions
- batbox.spawn: Allows the user to randomly spawn bats from their chests.
- batbox.spawn.double: Allows the user to randomly spawn bats from their double-chests. Note: This is set to default, meaning any player will have this permission. To remove permission add a - in front of the node. For example:
permissions: - batbox.spawn - -batbox.spawn.double
The player will not be able to spawn a bat from a double chest. If the - were in front of the batbox.spawn the player would not had either permissions.
Future Versions
Ability to change the percentage of spawning of bats from a config file.Implement permissions.Ability to configure the worlds bats spawn from chest in.Ability to configure the light level bats spawn from chest in.
Commands
- /batboxes [on/off]: Enables or disables the spawning of bats from chests.
- /bbx [on/off]: Acts as an alias for /batboxes.
Changelog
V 1.0:
BatBoxes created!
V 1.1:
Added configurations (Spawn chance and settings for double chests)
V 1.2:
Fixed a bug where it would spam the console if a player tried to place a chest near a double chest or shift click a chest.
V 1.3
- Added multiworld support (allow you to choose which worlds bats spawn from chest (all by default))
- Added more configurations (light level mobs spawn at (all by default))
V 1.3.1
Fixed a bug were single chest spawned two bats as if they were double chests.
V 1.4
- Updated to 1.7.4
- Added permissions: batbox.spawn and batbox.spawn.double
V 1.4.5
- Due to the request by timsavage and his player-base, added commands:
- - /batboxes [on/off]
- - /bbx [on/off]

-
View User Profile
-
Send Message
Posted Jul 15, 2014@Doamax
I never got around to thanking you for adding my feature request. So, thanks! Of course, the player who was complaining disappeared after a couple of days, never to be seen again, but I still appreciate the added functionality, for future chiroptophobic players.
-
View User Profile
-
Send Message
Posted Jan 17, 2014@timsavage
I am uploaded the new version now! Enjoy!
-
View User Profile
-
Send Message
Posted Jan 16, 2014I really like this plugin, but some of my players don't. Perhaps a future version could have a command to toggle bats on/off that players can use, with a permission node?
I really appreciate the simplicity of the plugin, and the config options for percentage chance and light level are good options. I hate to ask for additional features, and frankly I was surprised that some players really don't like bats flying out of chests once in a while. I reduced the percentage chance, but they just don't want any bats ever. I removed the permission node for them, but allowing them to turn it on or off themselves might be a worthwhile feature.
Thanks for this unique and whimsical plugin!
-
View User Profile
-
Send Message
Posted Jul 30, 2013You should make this work with all mobs with the ability to set the chances of appearing for each mob.
a 1% chance of a creeper appearing would be seeing a lot of people crapping themselves XD
-
View User Profile
-
Send Message
Posted Jul 30, 2013@Wolf0fmusic
Yes it works
-
View User Profile
-
Send Message
Posted Jul 30, 2013@sucer123
Yes I figured it out and used that exact same code.
-
View User Profile
-
Send Message
Posted Jul 30, 2013So its works or not?
Because I'm gonna download this plugin but I need to know if it works or not!
-
View User Profile
-
Send Message
Posted Jul 30, 2013@Doamax
for the error, did you make sure the Object your Interacting with is not Null? if you did, I don't know what your error could be. 'if (event.getClickedBlock() != null) { Stuff goes here }
-
View User Profile
-
Send Message
Posted Jul 29, 2013@MikyoM
Fixed it!
-
View User Profile
-
Send Message
Posted Jul 29, 2013@ArthurMaker
I could add that in.
-
View User Profile
-
Send Message
Posted Jul 29, 2013Can I choose only one world that this plugin will work?
-
View User Profile
-
Send Message
Posted Jul 28, 2013@Ackuraku
I've been needing some ideas. I'll implement this later tonight or tommarow.
-
View User Profile
-
Send Message
Posted Jul 28, 2013@MikyoM
This was happening to me while testing and I seemed to fix it. Which version are you using? Alpha or Beta?
Edit: Sorry didn't see "1.1" I don't know what the problem could be. I'll work on it.
-
View User Profile
-
Send Message
Posted Jul 28, 2013The plugin itself works fine for me, but it keeps spamming my console with this: 8:20:42 PM CONSOLE: [SEVERE] Could not pass event PlayerInteractEvent to BatBoxes v1.1
-
View User Profile
-
Send Message
Posted Jul 28, 2013Could it be possible to only spawn the bat when the chest is in a certain light level, or naturally spawned?