Inactive [RPG/MECH] PocketFurnace v1.4 - Smelt, burn and cook with commands [1.2.3-R0.1 #2023+]

Discussion in 'Inactive/Unsupported Plugins' started by spoothie, Jun 23, 2011.

  1. Offline

    spoothie

    PocketFurnace - Smelt, burn and cook with commands:
    Version: v1.4

    PocketFurnace grants you the ability of smelting, burning and cooking items with commands. You can smelt stone, ores, sand and clay, burn logs to get charcoal and cook food without having to have a furnace and coal near you.
    Vault is supported and also necessary to run this plugin.



    Features:
    * Smelt stone, ores, sand and clay
    * Cook fish, pork, beef and chicken
    * Burn logs to get charcoal
    * Set prices for smelting, burning and cooking a specific item


    Download PocketFurnace
    <Edit by Moderator: Redacted mediafire url>
    Source Code on Github


    Commands:
    Code:
    /pf  ->  Smelts, burns or cooks the item stack you are currently holding in your hand.
    /pf -a  ->  Smelts, burns and cooks all smeltable, burnable and cookable items in you inventory.
    Permissions:
    Code:
    /pf  ->  pocketfurnace.pf
    /pf -all  ->  pocketfurnace.pf.all
    Configuration:
    The config file can be found in the folder named "PocketFurnace" in your plugins folder and is automatically created on startup. You can set the prices for smelting, burning or cooking one unit of the specific item.
    Code:
    # PocketFurnace Configuration File
    # Prices to smelt, burn or cook one unit of the particular item:
    cobblestone: 1
    clay_ball: 1
    gold_ore: 1
    iron_ore: 1
    sand: 1
    pork: 1
    raw_beef: 1
    raw_chicken: 1
    raw_fish: 1
    log: 1
    Changelog:

    Version 1.4
    * Plugin completely rewritten
    * Use YAML for configuration file
    * Added Vault support/dependency
    * Added support for Beta 1.8 foods

    Version 1.3
    * Added some colors to the chat messages
    * Fixed chat getting spammed with messages when using "/pf -a"

    Version 1.2
    * Added iConomy support
    * Added configuration file

    Version 1.1
    * Renamed plugin, permissions and commands.

    Version 1.0
    * Initial release.

    If you find any mistakes in this post, please tell me, my english skills arent the best. Aside from that, I would very much appreciate your feedback. Thank you.
     
    Last edited by a moderator: Nov 27, 2016
    TOdkommt likes this.
  2. Offline

    spoothie

    I have renamed the Plugin to PocketFurnace, because it sounded a bit confusing for me (as far as I know you can't smelt fish or wood, PocketFurnace sounds more generally).
    This is my first plugin, so I would be very happy if someone could give me some feedback or suggestions for improvements.
     
  3. Offline

    NEO

    @spoothie

    Very cool, my only dislike is that users can constantly smelt things. Perhaps a configurable cost to smelt items or a way to limit it more. I still want furnaces to have some sort of value or use.
     
  4. Offline

    spoothie

    @NEO
    You're right, at the moment there isn't so much sense in this plugin...
    But I already thought of adding iConomy/Essentials Economy support. And how about the idea, that you have to have the needed coal in your inventory?

    I have added a short video to show you how it works ingame.
     
  5. Offline

    NEO

    I was thinking more of a configurable cost to smelt items. Like define how much it costs to use the command on a stack of iron ore etc.
     
  6. Offline

    SPACEDUDE360000

    Useful but maybe you could add iConomy support where you pay a certain amount per item smelted. I think that would be sufficient to balance it out.

    EDIT: lol didn't read the comments above :p
     
  7. Offline

    spoothie

    I finally got time to add iConomy support and a small config file to set the prices.
    I would very much appreciate if someone could test it out and give me some feedback.

    I just got another idea of kind of a cooldown for using the commands. But before thinking about this, I need to know if someone ever uses this plugin.
     
  8. Offline

    DrBowe

    @spoothie
    No, this is actually very clever. You got my vote!
    While I couldn't include this on my MMORPG server, this will probably get used by a lot of people (especially if you keep branching out and adding features!)

    Few suggestions:
    When you /pf -a, send a custom message that says "All smeltables have been cooked/burned/smelted" (or something along those lines)
    As opposed to it spamming the chat for every separate item.

    Also, add a little color to the messages. As silly as it sounds, colors will go a long way in making a plugin enjoyable for some people (never hurts to add a little flair)

    And finally, don't sweat over people not really seeing this yet, as it hasn't even made it to the Plugin Releases section. Once it gets there, THEN you'll start getting some publicity ;)

    Great job for your first plugin, though!
     
  9. Offline

    spoothie

    @DrBoweNur
    Thank you for your suggestions.

    Yes, you're right, I already noticed that.

    If this is true, I will add some colors to the text :D

    Hm, that's true, but what must happen that it gets moved to the Plugin Releases?
     
  10. Offline

    DrBowe

    As long as your main post is formatted properly (which it is), then really its just a matter of whether or not a Mod feels like searching through and 'promoting' it to a plugin release. I've had a plugin in submissions for a good 3 days now, and its already had a few big updates. I think they're just being slow on promoting due to the rush to get proper builds out for 1.7
     
  11. Offline

    spoothie

    With the new version I have added some chat colors and I fixed the chat getting spammed with messages when you use "/pf -a" by replacing all the messages with one single message (Again, thanks to DrBoweNur).

    I also realized that the plugin thread has been moved to the Plugin Releases. :)
     
  12. Offline

    BrainnDamagee

    got this error running on 953:

    2011-07-06 09:04:23 [SEVERE] Could not load 'plugins\PocketFurnace.jar' in folder 'plugins':
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  13. Offline

    yourock129

    Hey i was wondering if smelting iron cost was 1 and you had a stack of 10 iron blocks, would it cost 10 dollars or does it automaticly make it 1 dollar for the whole stack?
     
  14. Offline

    spoothie

    It works for me without any problems. When do you get the error? Ingame, when you use the plugin, or on server start? Did you just put the PocketFurnace.jar into your plugins folder?

    It is 1 dollar per one unit of the item. Smelting a stack of 10 iron would cost 10 dollars.
     
  15. Offline

    BrainnDamagee

    Yea i just put the .Jar into my plugins folder and when start my server up it tells me that.
     
  16. Offline

    Ratty18

    Hey dude,whenever i click to download,it says im not aloud to view,i signed up,tryed again,still didnt work. If you can fix/new linky :3
     
  17. Offline

    spoothie

    Is it still broken? If yes, you can download it from the alternative mirror.

    What other plugins do you use?
    Anyone with the same problem?
     
  18. Offline

    BrainnDamagee

    i've re-downloaded it and it seems to work perfect now :confused:
     
  19. Offline

    spoothie

    Strange... At least it works now. :)
     
  20. Offline

    spoothie

    I finally got github working for me, so I uploaded the code on it :)
     
  21. Offline

    Tim619

    This is really good except can you add like a cooldown when you smelt the items cause with cobblestone you can just say /pf and ta la you lose 10 cobblestone for 1 stone but they can mine it back for more so can you add a cooldown to it?
     
  22. Offline

    spoothie

    Well, there is already the iConomy support for some sort of limitation. But if you wish, I can try to add a cooldown, too, although I don't see much sense in it.
    But when you have 10 cobblestone and type "/pf" you should get 10 stone, not only one. And why should they re-mine the stone when they have just smelted the cobblestone?
     
  23. Offline

    Tim619

    Suggestion:How about using coal like this
    In the config you can edit this:
    1 coal=10 materials cooked
    2 coal=20 materials cooked
    adding coal make the furnace more realistic so people don't have to pay money to get thier item smelted
     
  24. Offline

    spoothie

    Well, good idea, but I didn't make this plugin to replace furnaces, its more a simple alternative when you e.g. stuck in a cave and don't want to spend ages on building a workbench and a furnace to cook your food. Of course it can be also used on a roleplay server.
     
  25. Offline

    NEO

    @spoothie

    Just wondering does this support decimals so costs for items can be fine tuned. like instead of 1 or 2, 0.7 or 0.5
     
  26. Offline

    spoothie

    Yes, it does.
     
  27. Offline

    ReddPandda

    i like it!, can you add a command and numbers? like /pf logs -a or /pf logs 31
     
  28. Offline

    spoothie

    Thanks for the idea, I'll add that soon. But what is "/pf logs 31" supposed to do? If you only want to burn 31 logs, you can take a stack of 31 logs and type "/pf".
     
  29. Offline

    ReddPandda

    Well yes, but what if you don't have inventory space to seperate the 2 stacks of logs?

    Also could you more advance iconomy support?
    could you charge per use and not just per item
    or both per use and per item
     
  30. Offline

    NEO

    @spoothie Update for RB 1185, 1.8 foods :)
     

Share This Page