Realistic Torches
Realistic Torches
Make Torches and Jack-O-Lanterns burn out!
Latest version for DL to the right ( -> ) on the big download button.
Previous version was at: http:dl.dropbox.com/u/7174774/dl/RealisticTorches.jar
Both need Java 7 JRE to run.
Currently ToDo:
- add mySQL support
- add some sort of permissions
Comments:
If you want me to read your comment, place them on dev.bukkit.org, not on curse.com.
The link to the dev.bukkit.org page is: http:dev.bukkit.org/server-mods/realistic-torches/
Video:
v2.2.1:
Plugin's Information:
- You can set Torches to burn out after some time (the time is configurable) or when it's raining (configurable)
- When burned out, it will be turned into a RedstoneTorch or it will be removed (configurable)
- When burned out, it will drop a Stick (configurable)
- You can set Jack-O-Lanterns to burn out after some time (the time is configurable) or when it's raining (configurable)
- When burned out, it will get turned into a Pumpkin
- When burned out, it will drop a Stick (configurable)
- You can turn Pumpkins into Jack-O-Lanterns by punching them with a Torch (configurable)
- This will cost you 1 Torch (configurable)
- You can turn RedstoneTorches into Torches by punching them with a Flint and Steel (configurable)
- This will cost your Flint and Steel 2 durability (configurable)
- This will cost your Flint and Steel 2 durability (configurable)
Config:
(will be automaticly generated if there isn't any)
#torch: # turnIntoDisabledRedstoneTorch: true Turn the torch into a disabled-redstone-torch instead of removing it? # dropStick: false Drop a stick when the torch is removed? (or when the disabled-redstone-torch has been destroyed) # burnoutDelay: 86400 Time before the torch will be removed (in seconds, 86400 = 1 day) # weatherExtinguishesItem: true Does rain destroys torches? # #jack-o-lantern: # dropStick: true Drop a stick when the Jack-O-Lantern will be transformed into a pumpkin? # burnoutDelay: 604800 Time before the Jack-O-Lantern will be turned into a pumpkin (in seconds, 604800 = 1 week) # weatherExtinguishesItem: false Does rain turns Jack-O-Lanterns into pumpkins? # # #pumpkin: # lightWhenPunchedWithTorch: true Turn a pumpkin into a Jack-O-Lantern when the pumpkin is punched with a torch? # howmanyTorchesDoesLightingCosts: 1 Howmany torches will the player lose when he lights a pumpkin? # #disabled_redstone_torch: # lightWhenPunchedWithFlintAndSteel: true Turn a disabled-redstone-torch into a torch when the disabled-redstone-torch is punched with a flint-and-steel? # howmuchDurabilityWillLightingCost: 2 Howmuch durability will the flint-and-steel lose when the player uses it to light a disabled-redstone-torch? (a flint-and-steel has 65 durability)
Known Bugs:
- none known at the moment
Requests:
If you want an extra function (or something made configurable), just ask me and I'll add it that option to the config!
Credits:
- NeatMoster made RealisticTorches v1.4.1 (last updated: 22 Oct 2011) and gave me the sources, which caused me to start creating Bukkit plugins. Without him, I would have never created a Bukkit plugin.
Thank you for this plugin. Any update to 1.5 in the works?
I need a permission to bypass this only for admins, beacause off NPC citys.
Hey I have in a long time been looking for a plugin that makes so you can walk around with a Torch and there is fire in it, but still that it can burn out, is there anyway you will make that?. :)
Source pl0x.
Alright, after testing this puppy out for a bit I only have one minor complaint- the torch burnout time seems to be calculated based off of real world time rather than server time.
I think you should add an option to change this because, for example, I have torches set to burn out after an hour; however, I wanted that to be calculated while the server is running; whenever I start playing I have to replace torches all over again.
EDIT: Hm...I've been testing and retesting this theory and I'm not getting solid results. Can anybody confirm a similar phenomenon?
Ok so I actually looked and it's because the current mod is designed for the 1.4.7 beta build. Any chance on an update to the current recommended?
EDIT: Alright I rescind that...even while using the beta build the plugin couldn't be loaded.
EDIT 2: Alright curiosity led me to testing the plugin on my laptop- and it worked. So I hopped back on to my desktop, and after some rather unenjoyable file spelunking I discovered that my main HDD had, like, 6-7 versions of Java on it (don't ask how). Long and short, I deleted them all, reinstalled a fresh version, and everything's perfect. Sorry for the fuss :S
Hm...I can't seem to get the plugin to load. As soon as I launch the server, I get a series of errors basically saying that Bukkit couldn't load the plugin. For the sake of testing I removed all other plugins, and finally deleted the entire server and recopied a craftbukkit.jar in, but to no avail.
Any ideas?
Very nice I was trying to make a mod like this, but I'll just link to yours :)
I have an idea: when a torch is exposed to rain, the torch should to turn off :)
@Bob2351723
Hey Bob,
Sorry but if I was going to make a large investment like that in this plugin, I'd probably rewrite it from scratch with SQL in mind. It would probably still be for bukkit. I barely have the time to code for one version, much less two.
@swordsurvival I'll look into that stack trace and see if I can post a fix.
Finally! I've been waiting for an update forever. Thanks! :D
I hate to ask, but this is exactly what I'm looking for, except that its for bukkit.
Can you make a forge version of this plugin?
Please.
Thanks, Bob
Your video is set to private, and here I thought I was going to get a treat.
5:21:49 PM [SEVERE] Error occurred while enabling RealisticTorches v2.3.3 (Is it up to date?) java.lang.NullPointerException at org.bukkit.Location.getChunk(Location.java:73) at zwarmapapa.RealisticTorches.BlockFunction.loadBlockChunk(BlockFunction.java:48) at zwarmapapa.RealisticTorches.BlockFunction.getBlockFromBlockData(BlockFunction.java:83) at zwarmapapa.RealisticTorches.RealisticTorches.checkAndStartAllTorches(RealisticTorches.java:314) at zwarmapapa.RealisticTorches.RealisticTorches.checkAndStartAllTimers(RealisticTorches.java:289) at zwarmapapa.RealisticTorches.RealisticTorches.onEnable(RealisticTorches.java:50) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.java:264) at org.bukkit.craftbukkit.v1_4_6.CraftServer.reload(CraftServer.java:593) at org.bukkit.Bukkit.reload(Bukkit.java:184) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchCommand(CraftServer.java:514) at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchServerCommand(CraftServer.java:506) at net.minecraft.server.v1_4_6.DedicatedServer.al(DedicatedServer.java:260) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Running latest beta My Plugins (I have alot): GroupManager, Buycraft, MyArrows, ijmh, Multiverse-Core, GalaxyFaker, MoarSoundz, SimpleWarnings, RemoteToolkitPlugin, AutoMessage, Chairs, Spectate, AntiAd, ExtraHardMode, RealisticTorches, Permissions, DrugMeUp, ProtocolLib, Votifier, mcMMO, ChunkFixer, WorldEdit, Multiverse-Inventories, MaxBans, BOSEconomy, PlayerHeads, NeverEndingFireWorks, WorldGuard, PvPTimer, CoreProtect, Essentials, Multiverse-Portals, dynmap, DisguiseCraft, CompatNoCheatPlus, EssentialsChat, EssentialsXMPP, EssentialsProtect, NoCheatPlus, EssentialsSpawn, EssentialsGeoIP, WorldBorder, SimplyVanish, Factions, Dynmap-Factions, ShowCaseStandalone, Vault, Backpack, PlotMe, IPCheck, DynmapPlotMe, CombatLog, ShelfIt, ChestShop, MagicSigns, WirelessRedstone, MyCommand, AutoRank
@Xaanos
Thank you Xaanos! Nice working with you again.
I tested your fix and it seems to work with 1.4.5 and 1.4.7 so I posted it as the official new build of the plugin and bumped the official version to 2.3.3.
Please note the dropbox link is now the WRONG version. I updated the text to say that but some people don't read. The correct version is on the bukkit file system here.
Thanks for the help!
@Xaanos
Thanks, I have test it and works perfectly :)
@Netu @rockmaclu
The source is provided its in the .jar file.
It is a really simple fix and here is a fixed jar. I am not the author but I sorta know Synaps4 he is a maintainer on one of my plugins so I hope he won't be angry I did this.
https://docs.google.com/open?id=0B3nAe3-zoHthR1hUaGV6Vkw1WEk
That jar works I tested it have fun.
@Diksur
I get the same errors. Hope they updated soon.
Any chance this might be updated, or the source shared?
Love you lots!
http://pastebin.com/VUUJcpfy
http://pastebin.com/ZKF2WQS2