[INACTIVE][FUN] FenceDoor v1.0 - Add doors to fences [432]

Discussion in 'Inactive/Unsupported Plugins' started by Gutter, Feb 20, 2011.

  1. Offline

    Gutter

    FenceDoor : My first plugin, tried to find something that wasn't done yet, even though it might not be that useful.

    Version: v1.0

    Features:
    • Add a door to your fence.
    Known bugs:
    None.

    Changelog:
    v1.0: Release.

    Download

    How to use it: To create a door, you need to place a "special block" under a fence that is linked to another fence. When a player interact with a fence, the plugin check if there is a special block under it, and look for another location with the same special block under it around the fence it touches (which act as the door's pivot point)

    The plugin use FENCE as default "special blocks", and look for it 2 blocks under the fence. So you bury a fence, and then place another one above it. You can edit config.yml to change the material and the depth the plugin looks for. This value can be changed so that the plugins look for the special block farther/closer away from the fence.

    Edit : Here are some images :

    [​IMG]

    A : The pivot point. The mod only works if the fence is linked to another.

    B : The possible positions for the door. You can place a "special" block (I used Fences, this is customisable) on two or more sides around the pivot point, and the "door" will go to the next position every time you right click on it. Those blocks are necessary, and they can be hidden underground.

    Here is the same fence, after hidding the locations and right clicking on it :

    [​IMG]
     
  2. Offline

    anon

    I really have no idea of how this works...
    A screenshot tutorial would be nice XD
     
  3. Offline

    Dreadreaver

    oh crap just hoped for a plugin that adds half size doors when using fences and connects the side fences to the half sive door but this .. ? :S
    thanks anyway
     
  4. Offline

    meee

    i installed it, all wooden doors has been removed... Bug?
     
  5. Offline

    Gutter

    No? I don't check for wooden doors at all. The door is made from a fence block.
    --- merged: Feb 22, 2011 1:02 AM ---
    Done. Hopefully is makes more sense.
     
  6. Offline

    Archelaus

    Please specify a build number in the title and format to our guidelines.
     
  7. Offline

    Gutter

    I just have no idea where to find it, or how to make sure which version is the required baseline...
     
  8. Offline

    Archelaus

    You find it by the version of craftbukkit you built this against.
     
  9. Offline

    GGreenBass

    This looks like something I will definitely implement as soon as Bukkit works with Beta MC 1.3 - in the meantime, how easy is it to edit the .yml file to change the depth and such? I love the method you use but I could imagine it presenting a problem for users in rare instances, so I'd like to be able to change it should the Apocalypse happen.
     
  10. Offline

    Juze

    Haha, this sounds really cool! Just like real world.
     
  11. Offline

    powback

    BLOODY HELL DUDE!
    Your first plugin?
    seriously, THIS is usefull!
     
  12. Offline

    a582841

    Great mod. Works flawless in 1.3. Tyvm.[​IMG]
     
  13. Offline

    kovarex

    Something similar can be easily accomplished using the controller cube.
     
  14. Offline

    ShadowDrakken

    agreed, except that ControllerBlock would require some sort of switch, where this just uses the normal right-click like a regular door.
     
  15. Offline

    Gutter

    You only need to set the material name (WOOD, FENCE, COBBLESTONE, etc) and the depth to look for. The depth is a positive integer, but if it's set to a negative value, the plugin will check above the blocks. You can even have the special blocks hidden in the ceiling if it is what you prefer.

    It's rather easy. The only drawback is that the change applies to all the server, so you can't mix "hidden" special blocks with surface ones. I'm surprised at the appreciative comments here, maybe I'll add some options to have multiple triggers.
     
  16. Offline

    RioS

    Can you add left click support like doors ? Hitting fence doors should open them.

    Can you also add right click support with any items in hands ?

    And can you add stackable fence support (put a fence on an other fence) ?

    And btw, your plugin needs an update to remove CraftBukkit message "Using the stupidly long constructor jsp.FenceDoor(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of FenceDoor to remove it! (Nothing is broken, we just like to keep code clean.)"
     
  17. Offline

    Slice

    Can you make double doors?!
     
  18. Please remove your old constructor:
    http://forums.bukkit.org/threads/oops-i-broke-your-plugins.599/#post-70677

    Now your Plugin works anymore, in the new Build I get the following error:
    2011-02-26 10:35:44 [SEVERE] Could not load plugins\FenceDoor.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: jsp.FenceDoor.<init>()
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
    ... 8 more
     
  19. Offline

    TheGamersHaven

    Yah, I get the same result as the post above me. I would really like to use your plug-in as it looks awesome but I can't.
     
  20. Offline

    Shenlong

    First thing, this is an awesome plugin, can't tell you how much using doors with fences bugged me. I have a small request, could you provide a permanent link to the jar file only for compatibility with CraftBukkitUpToDate please? Also, bukkit is telling me to nag you!

    Code:
    2011-03-03 20:18:46 [WARNING] Using the stupidly long constructor jsp.FenceDoor(
    PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no long
    er recommended. Go nag the plugin author of FenceDoor to remove it! (Nothing is
    broken, we just like to keep code clean.)
     
  21. Offline

    Nytemare3701

    Updated by Shadeness for your convenience. I hope the original author doesn't mind.
     

    Attached Files:

  22. Offline

    Shenlong

    Wow, thanks much for the quick fix!
     
  23. Offline

    LolHens

    13:14:56 [SCHWERWIEGEND] Could not load plugins\FenceDoor.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:80)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: jsp.FenceDoor.<init>()
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:75)
    ... 8 more

    I have no Idea
     
  24. Offline

    maheulbeuk

    hi,
    15:45:07 [GRAVE] Could not load plugins/FenceDoor.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:113)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: jsp.FenceDoor.<init>()
    at java.lang.Class.getConstructor0(Class.java:2706)
    at java.lang.Class.getConstructor(Class.java:1657)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:108)
    ... 8 more
     
  25. Offline

    Blocksberg

    This one worked with #556 for me, but now 1.4 and #612 is out it's broke. Anyone care to fix?
     
  26. Offline

    iTimmeh

    I'd like a fix as well.
     
  27. Offline

    Blocksberg

    Seriously, no one? :(
     
  28. Offline

    ZEUStiger

    Seems like the original author does not care about his plugin at all. But it's awesome. I got tired of waiting for update so decided to update it myself, a few minutes with decompiler and compiler and here it is. Compatible with at least 646 (and with any version after changes to plugin constructors, i believe). My updates to source code are crude, 'cause i'm not a java-programmer, but at least it works.

    <Edit by Moderator: Redacted mediafire url>
    or, in case the above one doesn't work: <Edit by Moderator: Redacted multiupload url>
    (links were updated after resolving the bug with rightclicking faraway blocks, please redownload)

    Enjoy.
     
    Last edited by a moderator: Apr 2, 2019
  29. Offline

    ZEUStiger

    Updated it again, resolved some bugs, added ability to stack fences on top of one another and open them with one click. By default this is turned off, you can toggle it in FenceDoor/config.yml (property is called "multilevels"). Stacked fences would not open if any of the fences in stack would collide with something.
    Also, fences would now open when clicked with anything except axes. They would destroy them as any ordinary fence.
     

    Attached Files:

  30. Offline

    brandon1994

    does this still work for mc 1.5?
     

Share This Page