Filled Disable placement on top of specific blocks

Discussion in 'Plugin Requests' started by matija131, Nov 6, 2019.

Thread Status:
Not open for further replies.
  1. Hi, so the title says it all! I would like a plugin that will disable placement of every block on top of blocks specified in the config.

    For example, I dont want people to be able to put a furnace(or any other block) on top of a furnace, a chest(or any other block) on top of a chest and so on... But I really need it to be configurable in the config!

    Hope you got the point, thanks in advance :D

    EDIT: Need it for 1.8
     
    Last edited: Nov 6, 2019
  2. If nobody does this before 12 November, please ping me and I'll make it! :) (I don't have time before then)
     
  3. Alright!
    I forgot to mention I need it for 1.8 :)
     
  4. Offline

    crazicrafter1

    The weekend is nearing, and I'll likely have it done by then. So, prevent certain blocks from being placed on top of other types of blocks? if so, I'm thinking of a config like this:
    Code:
    blocks:
      diamond_block:
        - chest
        - redstone_block
      chest:
        - chest
      furnace:
        - furnace
      tnt:
        - redstone_block
        - redstone_torch
    Where diamond blocks CANNOT be placed on top of chest or redstone blocks,
    chest CANNOT be placed atop another chest
    furnace CANNOT be placed atop another furnace
    tnt CANNOT be placed atop redstone blocks or redstone torches
     
  5. Looks good!
     
  6. Offline

    crazicrafter1

  7. Hej,

    @crazicrafter1 I've tested the plugin and unfortunately it did not work for me.
    Further more, if I understood @matija131 correctly, he wanted to prevent ALL blocks from being placed on the specific blocks listed in the config and not just blocks he also listed in the config. - If so, it would take ages to list all blocks there. That's why I've made my version of the request. - Please do not interpret it as a battle like "mine is better!" or sth like that. Just wanted to fulfill his wishes. :]

    https://www.dropbox.com/s/3lpfhwd60min8x6/NoTopBlocks.jar?dl=0

    I've actually also built in a permission to bypass the thing. If you don't need it, just don't give anyone the permission.: notopblocks.bypass
     
  8. Offline

    crazicrafter1

    Yea I misinterpreted it.

    However, it does work the way it says it is supposed to work. Using the default config, TNT is prevented from being placed on top of a redstone block. I don't know why you're getting different results.
     
  9. Yes I understood how the config is meant to be but it did not work anyway. Did u maybe built in a bypass permission which I had, cuz I was OP? Or did u maybe code it with a newer Spigot version?
     
  10. Offline

    crazicrafter1

    There are no permissions, just barebones anyone places the block. The API I used was spigot, and was last built on 6/5/19, the server is probably the same circumstances, spigot server also. I can build the newest 1.8.8 and see what happens now.
     
  11. Hmm that's strange then. I literally tried every block out which was written down in the default config but every block was placed normal. Strange.
     
  12. Offline

    crazicrafter1

    I found the issue,
    You were OP, so it returned and didn't cancel the blockplace.
     
    baenii likes this.
  13. Thank you guys alot, I will have to go with @baenii 's version but thank you both for taking your time to make this! :D
    Much love <3
     
  14. Glad to hear that it works & fits your requests. Could you mark that thread as solved then?:)
     
  15. Totally forgot, thanks for reminder haha
     
    baenii likes this.
Thread Status:
Not open for further replies.

Share This Page