[INACTIVE][MISC] BlocksOnGlass v0.44 - Place anything on glass [1185]

Discussion in 'Inactive/Unsupported Plugins' started by FrozenBrain, Apr 16, 2011.

  1. Offline

    FrozenBrain

    BlocksOnGlass - Place everything you want on glass .. and fences .. and ice :>
    Version: v0.44
    CraftBukkit: 1185

    Thanks for the video, @Gabriel Moon

    This plugin allows the players of your server to place anything on glass, ice and fences. Redstone also works.

    Features:
    • Place every item or block on glass, ice, fences and leaves
    • Support for Permissions
    Download BlocksOnGlass v0.44
    Source Code

    If you want to support me, please [​IMG].

    Permissions:
    Show Spoiler
    Players can only place an item on glass if they have the permission to for it.
    There are the following permission nodes:
    bog.itemGlass
    boi.itemIce
    bof.itemFence
    bol.itemLeaves

    If you want to allow them to place a torch on glass, you would use for example
    Code:
    bog.torch
    for wooden doors on fences
    Code:
    bof.wood_door
    and so on.

    The itemname hast to be uncapitalized or it won't work!
    Possible itemnames are:
    Code:
    POWERED_RAIL
    DETECTOR_RAIL
    TORCH (not for fences)
    LADDER
    RAILS
    LEVER
    STONE_PLATE
    WOOD_PLATE
    REDSTONE_TORCH_ON (not for fences)
    STONE_BUTTON
    WOOD_DOOR
    IRON_DOOR
    REDSTONE
    BED
    DIODE
    You can use bog.*, bof.*, boi.* and bol.* as well!


    Configuration:
    fenceFixIf this is set to 'true', you can place fences next to another one even if there's no fence below the new one.


    Changelog:
    Version 0.44
    • Update for CB 1185 (Minecraft 1.8.1)
    Version 0.43
    • Update for CB 1060 and 1118
    Version 0.42
    • Fixed ice (was not melting correctly)
    Version 0.41
    • Added support for leaves
    • Noteblocks placed on glass will now play the correct sound
    Version 0.40
    • Added support for ice
    • Updated for CB build 1000
    • Added "fenceFix" to the config (see above)
    • Monsters can no longer climb over fences
    Show Spoiler
    Version 0.35
    • Snow shouldn't be forming on glass and fences now
    • Torches can now be placed on fences without having to explicitly have the permission to
    Version 0.34
    • Added support for fences
    Version 0.33
    • Fixed lighting bug
    Version 0.32
    • Updated for Minecraft 1.6.6 (CraftBukkit b818)
    Version 0.31
    • Changed the way you can allow or disallow items to be placed on glass
      • See Permissions
    Version 0.30
    • Fixed redstone
    • The plugin has been completely rewritten to make it
      • faster
      • more reliable
      • more flexible
      • more compatible
    Version 0.22
    • Updated for CB 733
    • Added support for powered rails and detector rails
      • You can place them, but they do net work correctly yet, sorry.
    Version 0.21
    • You can now place beds on glass
    Version 0.20
    • Doors can now be placed on glass
    • You can now set which items can be placed on glass (see Configuration)
    • Fixed some bugs
    • Cleaned up the code a bit
    Version 0.11
    • Rails, Ladders, Redstone Wire and Redstone Torches can now be placed on glass (however redstone doesn't work until I know how to fix that)
    • Fixed Ladders
    Version 0.1
    • First public release


    Incompatible plugins: None
    Todo: Fix the sound note blocks make if there's glass below it (may be impossible)

    Have fun :)
     
    _ralts, ACStache, Noppoly and 3 others like this.
  2. Offline

    khamseen_air

    No problem, thank you for taking the time to update it. :D
     
  3. Offline

    FrozenBrain

    Done :)
     
    khamseen_air likes this.
  4. Offline

    Navigateur

    @FrozenBrain

    Don't forget to edit your title ^^ nice plugin.
     
  5. Offline

    FrozenBrain

    Oh, right. Thanks, I always forget to edit it :D
     
  6. Offline

    khamseen_air

    Erm, not sure if I'm missing something, but I still can't place anything on glass that I can't place on it normally. I.E. dirt, wood, logs etc all work, but that's normal vanilla behaviour. According to the server log it has enabled the plugin without any issues, but nothing seems to be happening.
     
  7. Offline

    FrozenBrain

    Did you set up your permissions correctly? It works perfectly on my CB1185 testserver.
     
  8. Offline

    khamseen_air

    Wow, I can't believe I was just that dumb! Totally phased on the fact I'd changed our permissions plugin whilst this wasn't working so hadn't re-added the nodes for it yet. Sorry about that haha.
     
  9. Offline

    Tanite

    Does this plugin provide the capability to stop flowers from popping out when placed on those blocks? A player on my server made a cactus (traditional looking, with arms) out of melons and I put a flower on top of one of the arms. It was very cool looking but of course the flower popped out. It would be nice to be able to place flowers on cactus blocks too. Many varieties of real cactus have flowers on them. Not sure if this is outside the scope of what you're doing but I figured I'd throw it out there :D
     
  10. Offline

    xsolar66

    iron bars!

    :D?
     
  11. Offline

    iarspider

    Please update for RB1317:
    Code:
    2011-10-11 22:18:58 [SEVERE] Error occurred (in the plugin loader) while disabling BlocksOnGlass v0.44 (Is it up to date?): null
    java.lang.NullPointerException
        at java.lang.Class.isAssignableFrom(Native Method)
        at org.bukkit.plugin.java.JavaPluginLoader.removeClass(JavaPluginLoader.java:245)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:992)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:166)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
     
  12. Offline

    ACStache

    that's not an issue of this plugin, give CB 1318 a try, as it fixed this onDisable NPE.
     
  13. Offline

    jungalist81

    Hey FrozenBrain,

    I love this plugin, you basically expanded the build creativity. My server is already having a lot of fun with this. What I want to do is have one master permission node. Is there such a thing?

    Also, I tried placing a torch on glass and it wouldnt let me. I used all the nodes: bog.*, bof.*, boi.* and bol.*.

    I am using bukkit 1317
     
  14. Offline

    Buckethead

    still works fine up to 1338
     
  15. Offline

    sean_skroht

    FrozenBrain could you please fix the issue with bog.*, bof.*, boi.* and bol.* nodes not working in PermissionsBukkit? If those nodes are used we can't place anything on glass or fences.

    In order for it to work, we have to list every item we want to place on glass or fences in the permissions list, and it's a real pain the ass having a permissions list a mile long.

    Thanks.
     
  16. Offline

    grinch843

    @sean_skroht

    Make sure you have the SuperPermsBridge.jar from the PermissionsBukkit page and add the following nodes. This is what I'am using on my server and it appears to be working fine for us.

    Code:
    superpermbridge.bog.*: true
    superpermbridge..bof.*: true
    superpermbridge.boi.*: true
    superpermbridge.bol.*: true
    Hope this helps....
    Grinch....
     
  17. Offline

    formaldehyd

    Is it possible to include MultiWorld support?
     
  18. Offline

    po5

    Let us place stuff on slabs please :)
     
  19. Offline

    fifth

    I think this plugin may be causing mobs to spawn on leaves.

    Aside from this i run choptree, commandbook, epiczones, eternalwolf, multiverse, multiinv, permissionsbukkit, trampolin, and worldedit.

    This is the only thing I can figure would be changing the properties of leaves in a way that would cause mobs to spawn on them. Like, I'm guessing the plugin causes them to function as solid blocks rather than transparent ones for certain purposes, which is what allows torches and such to be placed on them? I figure the same property is what allows mobs to be spawned on them.

    I'll try turning off BoG and see if that stops the monster spawning effect. If this is what's doing it, would it be possible to fix so you can still place blocks on things but without mobs spawning on them?

    Alternately, if that's not technically possible, maybe... a config file, so that you can turn the block-placement effect on for, say, glass, but leave it switched off for leaves?

    If not then oh well, thanks nonetheless for doing this plugin that is still pretty excellent, even if it's not exactly what I'm lookin for for my server.
     
  20. Offline

    grinch843

    @FrozenBrain

    Think you can add the ability to put redstone torches on pistons?

    Thanks,
    Grinch....
     
  21. Offline

    khamseen_air

    Pretty sure they can do that without any plugins. Monsters spawn on trees a lot on my server, and have done even before we started using this plugin. Mushrooms also spawn on trees before using this plugin.
     
  22. Offline

    fifth

    IDK how long you've been using BoG; I know mobs used to spawn on leaves in standard SMP but it was fixed in (IIRC) Minecraft 1.7 (maybe 1.6?).

    The issue (from what I understood, again going by recollection here) was that mobs spawn on solid blocks but not 'transparency' blocks (water glass etc) but minecraft treated leaves differently depending on graphics settings, so in SSP mobs would spawn on leaves if you were running graphics as Fast (because leaves would be solid) but not Fancy (because leaves would be transparent), whereas in SMP monsters always spawned on leaves because the server itself treated everything graphics-wise as if it were in Fast mode.

    That's what led me to believe that it's whatever BoG is doing to change block states in order to allow stuff to be placed on them that's causing mobs to be able to spawn on them.
     
  23. Offline

    khamseen_air

    I would say we started using this with 1.7, but I honestly can't remember. I'll have to try removing it to see if they stop doing that haha.
     
  24. So the bukkit prerelease is out, and while I KNOW it's not an RB and there's a strong possibility FrozenBrain has no intent or want to update it for just a prerelease, I figured I'd report my findings so far, which are, on startup:
    Code:
    [SEVERE] Error occurred while enabling BlocksOnGlass v0.44 (Is it up to date?): bE
    java.lang.NoSuchFieldError: bE
            at de.frozenbrain.BlocksOnGlass.blocks.bogBlockLeaves.<init>(bogBlockLeaves.java:11)
            at de.frozenbrain.BlocksOnGlass.bogPlugin.modifyBlocks(bogPlugin.java:88)
            at de.frozenbrain.BlocksOnGlass.bogPlugin.onEnable(bogPlugin.java:42)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:170)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:153)
            at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:332)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:319)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:383)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:454)
    What I tried and failed. (open)
    For my own experimentation I thought I'd see what would happen if I tried to deobfuscate the prerelease code with the latest MCP and take a look at the BlockLeaves class. Man, that file's totally different, and since this is my second time ever looking at deobfuscated code (which may not be right given that this was decoded with an MCP version not intended to work with a prerelease), I didn't know where to look to see about any code corrections because I didn't really know what the BoG code was actually doing as it interacted with MC. So, props to you, Frozen, for knowing what to do in there. I got nothin!
     
  25. Offline

    mrsuperbing

    hey, will signs work on glass?
     
  26. Offline

    Buckethead

    can u update this to work on the thin glass or glass panes some people call it to work

    yes

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  27. Offline

    khamseen_air

    Since glass panes are half blocks, this would probably look rather silly.
     
  28. Offline

    Buckethead

    still if possible and lol yeah i realized that to
     
  29. Offline

    seanster789

    does this work with bukkit #1337
     
  30. Offline

    Buckethead

    yep
     
  31. Offline

    Yoogoo

Share This Page