[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

    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:

    Permission nodes (open)

    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.
    Previous changes (open)

    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. Offline

    Tanite

    Which file would that be?
     
  3. Offline

    fatmarley

    This is my config.yml

    Code:
    bridge:
        enabled: true
        max-length: 32
        allowed-materials: [2, 4, 5, 20, 22, 24, 35, 41, 42, 44, 45, 48, 49, 57, 80, 87, 88, 89, 98]
    gate:
        enabled: true
        max-length: 32
        max-width: 4
    door:
        enabled: true
        max-height: 32
        allowed-materials: [3, 4, 5, 18, 20, 22, 24, 35, 41, 42, 45, 47, 48, 49, 57, 80, 82, 87, 88, 89, 98,[U] 101[/U]]
    hidden-switch:
        enabled: true
    lift:
        enabled: true
        max-search-height: 32
    ammeter:
        enabled: true
    cauldron:
        enabled: true
    pen:
        enabled: true
        material: 263
    
    use-permissions: true
    use-worldguard: false
    use-zones: false
     
  4. Offline

    Tanite

    Ah, I didn't think door was the same as gate, but maybe I misunderstand the terminology here. I'll give it a try, thanks :)
     
  5. Offline

    fatmarley

    @Edoxile

    Could you help me with this? It causes errors and I assume it is the :'s but ive forgotten what to do.

     
  6. Offline

    Edoxile

    Yeah, I forgot about data values for items in recipes :+

    Still working on the rewrite, you'll have to wait, but I'm quite busy going to university and all (Technical University FTW btw)
     
  7. Offline

    h0us3cat

    @Edoxile
    Right click on bridge is server crash/freeze?
    No errors.
     
  8. Offline

    GuntherDW

    h0us3cat, a bukkit update broke the plugin, in a way that you won't like.
    The way Edoxile checked for and "end" block made the server create an infinite amount of chunks.

    Also, because Edoxile is currently rebuilding his plugin from the ground up, (even though he accepted my pull request),
    here's a temporary fixed jar http://www.wrongplace.be/files/minecraft_stuff/BetterMechanics.jar

    If you want a cleaner tool for the excess chunks (but I believe you have such said tools already), you know where to find me :p.
     
  9. Offline

    h0us3cat

    door enabled: false > gates are disabled too :p, you cant create gates but you cant use them.
     
  10. Offline

    Tanite

    Doh. Are there any other plugins for gates other than falsebook now? I was trying to get away from that thing :p
     

Share This Page