[INACTIVE][MECH] CraftBox v0.2.0 - Extended Recipes and Systems [803]

Discussion in 'Inactive/Unsupported Plugins' started by PassivePicasso, May 12, 2011.

  1. Offline


    CraftBox - Extended Recipes and Systems
    Version: v0.2.0

    Development on this plugin is on hold for an undetermined time. I may or may not return to working on this plugin in the future. As a side note, I have officially abandoned my attempt to propagate Redstone power over Redstone wire, I suspect that currently the implementation I'm looking for is not possible.

    The Light Weight recipes mod.
    Adds new recipes, with plans to incorporate special unique recipes and extra systems based upon previously unobtainable blocks.

    NOTICE: CraftBox.jar was renamed to CraftBox2.jar, due to problems with managing files on GitHub. I'm sorry for any inconvenience.
    CraftBukkit 766 Compatible Jar: CraftBox2.jar

    Source: Git Hub Repo
    The source also depends on my Utilities repository.

    • Ice Recipe
      • Convert 4 Snow Balls, 4 Snow Blocks and 1 Water Bucket into Ice Block.
    • Toggle recipe availability using togglerecipe ItemResult
        • Turning off recipes requires the server to be shut down and restarted.
        • Reloading the server will have no effect.
        • Turning on recipes only require that the server be reloaded.
        • Commands can only be run from the server console at this time. Once I've setup permissions this will no longer be the case.
        • Note that the example shows the command as /togglerecipe, however in console you need to omit the /, so if you want to toggle the ice recipe you enter:
          • togglerecipe Ice
            • or
          • tr Ice
      • ex. togglerecipe Ice
      • ex. togglerecipe CoalOre
      • ex. tr Ice
      • ex. tr CoalOre
      • tr / togglerecipe without an argument will show a list of valid arguments.
      Show Features (open)

      • Coal Ore Recipes -
        • Convert 8 Coal and 1 Cobblestone into Coal Ore
        • Convert 1 Coal Ore into 8 Coal
      • Redstone Ore Recipes​
        • Convert 4 Redstone Dust and 1 Cobblestone into Redstone Ore
        • Convert 1 Redstone Ore into 4 Redstone Dust
      • Lapis Lazuli Ore Recipes​
        • Convert 8 Lapis Lazuli and 1 Cobblestone into Lapis Lazuli Ore​
        • Convert 1 Lapis Lazuli Ore into 8 Lapis Lazuli​
      • Web Recipe
        • Convert 4 String and 1 Soul Sand into Web Block
          • Web blocks do not display a name when highlighted
      • Soul Sand Recipe
        • Convert 1 Sand, Water Bucket, Lava Bucket, Bone, Pork, and Jack'O'Lantern into Soul Sand
          • You'll also end up with 2 empty buckets, however, other plugins could cause the buckets to not remain.
      • Diamond Recipe​
        • Convert 9 Coal Ore into 1 Diamond​

      To Do:
      • Allow Admins to modify Recipe costs.
      • Add new recipes for...
        • Sponge
        • Leaves
      • Alternative recipe systems.
        • Create diamonds using blast compression (more along the lines of how industrial diamonds are created) rather than using the crafting table.
        • Water to Ice conversion units. (rather than a crafting table recipe)
          • This might be implemented using Snow Blocks and Hatches. Obviously this would mean waiting for 1.6 to be released as well as a RB correlating to 1.6 from the Bukkit team.
      Ideas to Research:
      • Setup use tracking
        • (Research required) Allow admins to setup daily maximums
      • Utilizing time for special recipes.
      • Chain mail armor pieces.
      1. Download and save rar.
      2. Place jar into your craftbukkit\plugins folder.
      3. Start server.
      4. Have fun, with your new blocks.
      Show Recipes (open)

      • Shapeless - position of items is not important.
      • Coal Ore Recipe
        • Does not accept Charcoal
      • Diamond Recipe
      • Soul Sand Recipe
        • Does not destroy buckets
        • Shapeless
      • Web Recipe
      • Redstone Ore Recipe
      • Lapis Lazuli Ore Recipe
      • Restore Recipe: Redstone
      • Restore Recipe: Coal
      • Restore Recipe: Lapis Lazuli
      • Ice Block Recipe

      Version 0.2.0
      • Added ability for recipes to be toggled on and off from console.
      • Added Ice Block recipe.
      Older changes (open)

      Version 0.1.3
      • Modified Soul Sand recipe
      Version 0.1.2
      • Added Web recipe
      • Added Soul Sand recipe
      Version 0.1.1
      • Added Lapis Lazuli recipes
      Version 0.1
      • Initial Release
  2. Offline


    Getting two errors when using:

    Show Spoiler

    2011-05-12 21:42:40 [SEVERE] Could not load 'plugins\CraftBox.jar' in folder 'plugins':
    java.lang.ClassNotFoundException: me.passivepicasso.boxocrafts.CraftBox
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:160)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:191)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:100)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    Show Spoiler

    2011-05-12 21:43:13 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    at com.nijiko.permissions.Control.getGroups(Control.java:620)
    at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:43)
    at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:384)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:84)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:68)
    at net.minecraft.server.ItemBlock.a(ItemBlock.java:74)
    at net.minecraft.server.ItemStack.placeItem(ItemStack.java:56)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:217)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:526)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
  3. Offline


    This has been resolved. Sorry for the inconvenience
  4. Offline


    :D Its Ok.
  5. Offline


    Zowowowowowow. I thought this was impossible without a clientside mod. Nice!
  6. Offline


  7. Offline


    Cool :p Can you maybe send me how you can see if something gets crafted? Im having trouble with that. (the Java code)
  8. Offline


    I don't use Celtic Minstrel's methods, I use a slightly lower-level method.
  9. Offline


    I dont even know what Celtic stuff is :p
  10. Offline


    I'm not sure if you can detect this. My guess is it would be an Inventory event, but I couldn't tell you which. This system works simply by creating and adding recipes to a server list. I don't work with any event handling here.

    lower-level method? Maybe using that method you could detect when a recipe is actually utilized?

    This is of interest to me, I have plans to create special scenarios for creating some recipes, but I don't see a way to hook the recipe event before, during, or after a new item has been created.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  11. Offline


    changelog has to be at the end and use only 766 for CB version in the title
  12. Offline


    This has been updated.
  13. Offline


    can u get the air-plains stuff in this plugin? and make a client mod as well somrething like this plugin ur makeing sir can have a lot of pertanchel
  14. Offline


    No this can only create blocks/items already programmed in the client.

    On another note... would it be possible to add web and sponges as a craftable?

    Web could be


    where S is string and 0 is nothing.

    Sponges could perhaps use wool and buckets of water?
  15. Offline


    @PassivePicasso - yes, I can tell when the recipe is actually used (which I may use for Permissions per-recipe etc.). I basically just made a wrapper class for recipes, then loop through each workbench every tick and check for a recipe.
  16. Offline


    oh i like this, thank you!
  17. Sounds very interesting i hope it will run :)
  18. Offline


    You should add recipes for chain mail ^^
    (also is chain mail the same strength as iron?)
  19. Offline


    I'll consider this, but it depends on if adding chainmail actually adds anything to the game. So this wont be something immediate. I'll add this to my research list.
  20. Offline


    ok, thanks
    i found out chainmail has the same durability as gold.
    but personally i think you should add it since it does add a previously unobtainable armor to the game ^^
  21. Nice - a very good plugin - tested for me on bukkit #767 and working great.
    ....... anyway, nice work !!

    Like the idea of redstone ore transmitting redstone power ....... that would solve a couple of problems I've had having to leave gaps where I don't particularly want to ...... hope you succeed on that one. .......... many thanks again ...
  22. Offline


    Redstone ore can drop 4-5 redstone dust. So when you make an ore using 4 dust, and then place and break it you get 5 dust.
    Making the cost of a redstone ore 5 dust fixes this problem
  23. Offline


    Can you do custom blocks craft using additional cells in terrain.png?
    Also it will be great to make own recipes (in additional config file maybe)!
  24. Offline


    No, Unfortunately this is not yet possible.

    I realize this potentially allows for user abuse, however, Redstone becomes abundant pretty quickly. Abusing this would require a user to spend a huge amount of time re-mining redstone.

    I don't see this as an issue, however is demand is large enough to change this then I will.
    Additionally, I'll be providing a series of options to allow admins to change the recipes to some degree, however my aim is to provide a light weight, balanced recipes, and simple systems mod.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  25. Offline


    Great plugin :D
    Anything to craft ice or leaves maybe ? ;)
    And can I desactive one of those recipes with a config file ?
  26. Offline


    I'll add Ice to my list of things to research. I could see uses for ice as a temporary portable water block... however this depends on how ice works.
  27. Offline


    Thank you to think about it :)
  28. Leaves can be good for decoration, i.e. privot hedges and the like, but currently there's no way to get them without a hack, which I don't like to do - I understand it wouldn't be a high priority, but worth a thought please.
  29. Offline


    I'll consider adding this, However I'm currently working on the persistence system, and admin controls, so it will be a few days off before I can get to it.
  30. Offline


    It only seems to be responding /togglerecipe RecipeResult when I type in a command.

Share This Page