ButtonLink

Discussion in 'Plugin Requests' started by BlockHeads36, Mar 5, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    BlockHeads36

    Minecraft Version: 1.11.2

    Use: Clicking a button could set certain blocks to air, then undo it 5 seconds after

    Commands:
    permission: oped players
    - /button setdelay <time> | Time before blocks are removed
    - /button setcooldown <time> | Time before next use
    - /button setblocks [WorldEdit Selection]

    Messages:
    oncooldown: &9Button> &fYou must wait &a%seconds seconds&7 before clicking this again!
    crouchbreak: &9Button> &fYou must be crouching to break this button!
     
  2. Offline

    MrGeneralQ

    You can actually achieve this using command blocks and the command 'setblock'
     
    UnseenMC likes this.
  3. Offline

    hole896

    Depending on your space available for build, you could use the Command Block as MrGeneralQ suggested, with a redstone repeater/clock to activate the second command block to run the unset command.

    Example:

    In no means am I am expert at redstone/command blocks, so please do not judge. In my research this is as simple as I could get it. This is using vanilla Minecraft, depending on what mods, etc. you have it may differ.

    [​IMG]

    Link to world: http://www.planetminecraft.com/project/setblock-button-command-with-5-second-delay/

    EDIT:

    Also added design to have a longer delay that really saves on space, however is not quite as accurate.

    [​IMG]

    Download link is the same.
     
    Last edited: Mar 6, 2017
  4. Online

    timtower Administrator Administrator Moderator

    @hole896 @MrGeneralQ Would get tricky with an entire worldedit selection though.
    Not to mention that it could take a lot of space if the time would increase to 30 seconds.
     
  5. Offline

    hole896

    Doesn't take up much more space than original. It is simple enough to use a hopper timer, as I have updated the world and added one in for 30 seconds as an example.

    Worldedit would be fairly simple as well, however that would require another plugin, and the current design is vanilla. I will design another for that purpose.
     
  6. Offline

    MrGeneralQ

    there is a command to set 2 coords. I think it is called cuboid. And for The timing you can indeed use a hopper and a counter scoreboard for that. The entire setup can be 2 x2 square.
     
  7. Offline

    hole896

    I don't believe there is a command to set 2 coords. I know you can use //pos1 x y z & //pos2 x y z - and I have looked up the single command but have not found it, if there is such a command could you please share it in it's entirety so that we may use that command.

    My only reason for not using scoreboard is that it spams the player with messages, I'm sure there's a way to turn it off, however I was going for the most basic design I could.

    Just realized OP asked for a Worldedit "button" and not a setblock...
     
    Last edited: Mar 7, 2017
  8. Offline

    MrGeneralQ

    I just found it
    https://www.digminecraft.com/game_commands/fill_command.php

    And for the scoreboard just create the dummy object and set it to the player. Don't set any slots or display.

    Hope this helps
     
  9. Offline

    BlockHeads36

    @MrGeneralQ @hole896 Yes, I do realize this is possible with command blocks, I just want to stray away from the use of command blocks on my server
     
Thread Status:
Not open for further replies.

Share This Page