[INACTIVE][FUN] BetterMechanics v1.10 - Bridges, Doors, Gates, Cauldrons and more [1000/953/935/860]

Discussion in 'Inactive/Unsupported Plugins' started by Edoxile, Jun 10, 2011.

     
  1. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    BetterMechanics - The Mechanics Plugin:
    Version: v1.10

    Works on the latest RB (1000).

    This plugin is written to replace CraftBook and CraftBookMechaisms, because they lacked some features I needed on the server.

    I've also added a new feature, called the pen.

    Features:
    • CraftBook-stuff (take a look at the CraftBook wiki to find out how you build these):
      • Door
      • Gate
      • Bridge
      • Lift
      • Hidden switch
      • Cauldron -> Updated the cauldron completely, now leaves non-recipe blocks intact. Using new recipe format as of 1.7
      • Ammeter
        Bridges, Gates and Doors need a chest with the items, so they're not spawned.
    • Added:
      • Small door (door with width 1, sign label is [sDoor]/[sDoor Up]/[sDoor Down])
      • Small bridge (bridge with width 1, sign label is [sBridge]/[sBridge End]
      • Pen
        you can put text in your memory and paste it on a sign. This only works if you can build in the area.
        Very useful if you have a plugin like MinecartMania running. How this works:
        • Commands:
          /pen set <text> » set the sign text (the char '^' is a line break)
          /pen setline <line> <text> » set one line of the text (lines start at 0)
          /pen clear » clears the current text
          /pen dump » dumps the current text
          /pen clearline <line> » clears the line (set to "", lines start at 0)
        • Control:
          Right clicking a sign will either place the text on the sing, or, if your memory is emtpy, load the text in your memory.
          The tool can be changed in the config, but the default tool is a piece of (char)coal.
    All these features have permission nodes, and a (Meaglin's) Zones and/or WorldGuard check is possible. Just edit the config to enable or disable these features. The permission nodes are:


    Code:
    bettermechanics.small_bridge.use
    bettermechanics.small_bridge.create
    
    bettermechanics.bridge.use
    bettermechanics.bridge.create
    
    bettermechanics.small_gate.use
    bettermechanics.small_gate.create
    
    bettermechanics.gate.use
    bettermechanics.gate.create
    
    bettermechanics.small_door.use
    bettermechanics.small_door.create
    
    bettermechanics.door.use
    bettermechanics.door.create
    
    bettermechanics.lift.use
    bettermechanics.lift.create
    
    bettermechanics.hidden_switch.use
    bettermechanics.hidden_switch.create
    
    bettermechanics.ammeter
    bettermechanics.cauldron
    bettermechanics.pen
    
    And for reloading the config:
    bettermechanics.reloadconfig
    


    Download BetterMechanics
    Zip: https://github.com/downloads/Edoxile/BetterMechanics/BetterMechanics_v1.10.zip
    Source code: https://github.com/Edoxile/BetterMechanics

    If you find any bugs, or if you have a brilliant new feature that should be added, please let me know!

    Credits go to sk89q for both the idea, and pieces of code that I've used of him. Also thanks to Meaglin and GuntherDW for fixing some bugs.

    Changelog:
    Version 1.10
    • Fixed a -1 block issue.
    • Chest-searching now starts with the nearest blocks.
    Version 1.9
    • Added a /bettermechanics reload (cauldron) command. Alias is /bm, so you can reload with /bm reload as well.

    Version 1.8a
    • Removed redundant (debug) logs.
    Version 1.8
    • Added tallgrass to non-solid blocks, and removed cobweb from it.
    • Added /pen clearline <line>
    • Added new permission nodes/checks
    Version 1.7a
    • Fixed some bug of never-changing gates. If it still occurs, use [dgate] instead of [gate].
    Version 1.7
    • Cauldron now uses new file (YAML) and format
    Version 1.6.1
    • Implemented small bridges
    Version 1.6
    • Cauldron now supports a glass floor. Keep in mind that the recipe shouldn't contain glass, else you'll probably get an error saying the recipe does not exist, or your glass floor will disappear!
    Version 1.5.1
    • Fixed some dupe bug
    Version 1.5
    • Implemented small doors
    Version 1.4.1
    • Fixed a typo
    • Using a better comparing function for MatieralData
    Version 1.4
    • Fixed the last bugs, it's ready for the bukkit forum now.

    More details of changes can be found at github.
    kahlilnc likes this.
  2.  
  3. Offline

    chelben9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    lol ok thanks or i mean ttttttthhhhhhhhhhhhhhaaaaaaannnnnnnnnnnnnnnnnkkkkkkkkkkkkksssssssssssss
  4. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Fix'd in latest update.

    Than you can just use that (btw, FalseBook is even worse than CraftBook). But please, remove the link. If people want to have FalseBook they can look for it themselves.

    One of the things I've got on my todo-list is a modded fork of GuntherDW's SnowBalls mod. This would allow for custom blockdrops + amounts and "reward" blockdrops with a certain chance (on TweakCraft for example, birch trees drop cacao with a chance of 1/1000). I could add the option to change block with redstone to that. Mining the changed blocks will drop the original ones (this is an easy check, as I can check if a block is powered by redstone or not when it is destroyed).

    I'd suggest waiting for that, but now I'm going to work on a different plugin, which will be released on the bukkit forum as well.
  5. Offline

    brandon1994

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    could you add the ability to make the hidden switch also work with buttons instead of levers :D?
  6. Offline

    GuntherDW

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That wouldn't really fit in BM though. IMO There are plugins that are more suited for that job imo.
    All we wanted was a simple plugin with hardcoded (almost) recipes and small various other fixes.
    The name stems from way back when you its purpose was to enable people to mine snowballs just after the 1.2 alpha update, and regen snow as well.
    Boy those were the days :D.

    This post has been edited 1 time. It was last edited by GuntherDW Jul 31, 2011.
  7. Offline

    JesterB

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This doesn't support per-recipe cauldron permissions does it? If not... could it?
    Something like bettermechanics.cauldron.<recipename>

    This would be a hugely handy feature for those of us just looking for a way to add recipes to the game, and control who can access them.

    Just a thought!
  8. Offline

    Ture

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I like your plugin, I would like to replace craftbook on my server and use this plugin instead of the craftbook mechanics.

    I do have an issue though. If a fence is near a gate the gate does not work. It seems the fence detected as a gate instead of the real gate. Removing fences in the vicinity the gate starts to work.
  9. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is a know issue and I probably won't fix it. Using [dGate] is advised in these situations, and it will probably fix the problem.

    Yeah I might implement this, if it's not too much work :p. ATM I'm quite busy developing an other plugin, so it might not be soon but if I find the time I will do it.
  10. Offline

    seanster789

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    just wanted to let u know that when using this plugin with the essentials plugin and you type in "/help" it used to show you all the commands associated with the plugin and now it does not show any of them. so if you could make this comepadable with essentials again that would be awesome cause i dont like tabbing out of minecraft and having looke at this page for all the commands that are needed to make the different doors and triggers
  11. Offline

    LlmDl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This looks good, any chance you'll add the redstone-activated netherrack fire?
  12. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    As I've said many times before, no I'll not do this. This is not functionality of CraftBookMech, it's CraftBookIC, so if you want to use that, just run this + CBCommon + CBIC.

    That's Essentials, I cannot hook into that for the single purpose of adding these commands, because you simply cannot hook a command twice.

    Offtopic:
    I don't even like Essentials, I recommend you use TweakcraftUtils from GuntherDW.

    This post has been edited 2 times. It was last edited by Edoxile Aug 3, 2011.
  13. Offline

    Ture

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No, same thing with [dGate]. The gate is divided from the fence by one column of stone (the frame around the gate) where the sign is placed. Single hight fences make no sense as a gate, couldn't you ignore these when searching for the gate blocks?

    This post has been edited 2 times. It was last edited by Ture Aug 3, 2011.
  14. Offline

    Zykana

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm getting a [WARNING] [BetterMechanics] Disabled cauldron because there were no recipes found in the config. But I did set recipes. Bukkit 1000.
  15. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please post both your config file and caudron-recipes.yml so I can check syntax etc.
  16. Offline

    mutiny

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    getting this in console, narrowed it down to switching a bridge with redstone

    09:10:52 [INFO] Amount left: 12
    09:10:52 [INFO] Amount left: 6
  17. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Could be I left in some debug-stuff, I'll look into it.
  18. Offline

    JDD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This really needs documentation rather than relying on craftbooks, which is in and of itself horribly documented.....
  19. Offline

    mutiny

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    occasionally that will happen for a few tens of thousands of lines, and server will timeout, happens in a matter of 10 seconds or so
  20. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Working on that, I'm getting my own site + wiki, but until that's finished I'll stick to craftbook's wiki.

    Tomorrow I have some spare time left, I'll look into it then.
  21. Offline

    Tauryuu

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Which permissions does this plugin use?
  22. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Those can be found in the OP, under the Permission Nodes spoiler.
  23. Offline

    decebaldecebal

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i am running CraftBook but i want to switch to this plugins cause this seems more lightweight
    i have a question though,what does Bridges, Gates and Doors need a chest with the items, so they're not spawned. mean?
    do i have to put a chest with the items on every bridge, in front of every gate or what?
    i don't understand this part i just want it to be easy to use and make like CraftBook just put a sign with [Gate] near a fence wall and the gate will work

  24. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  25. Offline

    Thardion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can i get a example config for the Cauldron-recipes? I want to have it use multi IDs on each level. lets say I want to have it make Fire and the recipe calls for 3 netherrack and 1 smoothstone on the bottom and 1 ironblock and 3 wool on top. What would the recipe congif look like for that?
  26. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Bottom/top order doesn't matter, as does the block order. Just add all the blocktypes as you want them

    https://github.com/Edoxile/BetterMechanics/blob/master/cauldron-recipes.yml

    So that would be:
    Code:
    recipes:
        Fire:
            # 3 netherrack, 1 stone, 3 wool, 1 ironblock
            ingredients: [ [87,3], [1,1], [42,1], [35,3] ]
            # 1 fire
            results: [ [51,1] ]
    

    This post has been edited 1 time. It was last edited by Edoxile Sep 3, 2011.
  27. Offline

    monir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi we het this spam message all the time what can i do to remove it from console?

    [IMG]

    This post has been edited 1 time. It was last edited by monir Sep 3, 2011.
  28. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I fixed that in the latest update, check the BukkitDev page (version 1.11)
  29. Offline

    Tanite

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    In my case, it would work better if it gave precedence to fence that is above the sign instead of fence below it. I had a 1-high fence leading up to the gate and it just wouldn't work.

    Also, I'm wonder if this ignores ChestShop chests that might be behind the gate (in a small store). I haven't had this as an issue but it might make sense to do.

    Otherwise this seems to be working good so far. I have been looking for an alternative to Falsebook for a while :D
  30. Offline

    Edoxile

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll see what I can do.
  31. Offline

    monir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi i downloaded the latest build i still get this spam message :(
  32. Offline

    monir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    latest uppdate still gving spam message

Share This Page