Hold-able Torches
PLEASE READ
I will no longer be updating this plugin, neither will Relicum or DanielGaming, this is due to the fact that I've stopped coding bukkit (or even java completely) due to the los of interest. The original source code should still be available on GitHub, if you want to continue this project or update it feel free to grab the source code and update it yourself. The current version will still be available for download, but it has only been bug-tested for minecraft 1.7.4 and will not be updated any further. Scroll down for a list of bugs in the current version. The big update that Relicum was going to make has been cancelled due to other things making it very hard to complete.
Hold-able Torches
Hold a torch and get light!
What is Hold-able Torches?
Well, its almost just like the title says. When you hold a torch or a redstonetorch you'll get a night vision effect.
This effect will stay as long as you hold the torch, if you de-select the torch you'll lose the effect.
Video Page!
If you have a video about this plugin, let me know in the comments and I might add your video on this page!
Visit the video page here!
Installation:
None! Just drop the plugin into your plugins folder, restart your server and you're good to go!
Only thing you might want to do is give people the permission to use it ;) otherwise it's quite pointless to have this plugin....
Permissions:
Permission | Description | Default | |
---|---|---|---|
holdabletorches.use | allows the user to use the torches to get the effect. | OP (Only OP's can use it by default) |
Source Code at GitHub!
View the source code at Github! Feel free to use any part of the code for your own plugin!
To Do:
Add Permission SupportAdded!- Add a configuration file with an option to change between the night vision effect or an visual effect as if there was a torch on the ground.
Known issues/bugs
- when the player has a night vision potion effect by a own potion. The effect will be removed if the user scrolls through their hotbar.
- If anyone has a torch in their hand, nobody else can get the effect at the same time or all players will get the effect. This will be fixed soon!
I found a quite annoying bug:
If anyone has a torch in their hand, nobody else can get the effect at the same time or all players will get the effect. This will be fixed soon!
Will be fixed in an hour!
@f232599
I'm currently working on the feature to get an effect as if the player has placed down a torch. The problem is is that it's not officially supported by bukkit to set a light level. Which is required to make it invisible. There might be a way to go around this by just spawning a torch in the player. But that'd be visible for everyone. It also could cause major lag if you constantly update the light level.
But your suggestion is, if I understood correctly, that if you hold a red stone torch. The light lvl would be less? See there's no difference between night vision 1 or 2 or whatever number. So that'd be pretty hard. Maybe I can give a blindness effect with a red stone torch. I'll look into this later.
Thanks for the suggestion :)
Nice plugin, Maybe if you have a redstone torch, you won't get a great deal of light, but will suffice.
Looking forward to an update to change from night-vis to real torch light.
@Qwahchees
Thanks, I'm glad you like it! We're working on a new feature now. If you or anyone else has suggestions for future features please leave a comment.
Interesting concept, nice.
Added permission support
Added a class and cleaned both classes up
@webbhead
nice!
Hey it is webbhead and I would love to help develop this plugin with you it is a great Idea and I really would love to help :P