• Hi Guest
    Please take 5 minutes to complete this short survey about your experience on minr and how we can improve the server. Results will be published in the near future.
    Please feel free to share this link.
    Link to Survey

Resolved Iron Door - Bench Press

Fire

Minr Wiki Writer
Greenie
Board
May 13, 2015
341
219
Map Name
Iron Door
x y z coordinates?
-4369 83 -4651 | -4367 83 -4651 | -4473 83 -4651 | -4471 83 -4651 | -4421 83 -4651 | -4419 83 -4651 | -4395 83 -4651 | -4393 83 -4651
In these puzzles, you normally have to clear all of the iron blocks from one side, to "make an iron door" on the crafting bench and to create an exit. In 1.14, however, you only need 2 adjacent blocks cleared from one side, and you can then crouch into the 1.5-block-tall gap.

3016


3017

I'm unsure of how to patch this easily.
 
Last edited:

Hex

Board Man
Op
Board
Jul 26, 2016
554
446
Could probably use /testforblock with a duplicate door and variables to solve this.
 

CreepaShadowz

Spawn Maintainer
Mod
Apr 21, 2014
1,097
522
Could probably use /testforblock with a duplicate door and variables to solve this.
/testforblock was removed. I feel like it would be more natural to not have any "magic", though worst-case scenario I guess we can use /execute. Are there any blocks that aren't full height with a gap on the bottom?
 

Hex

Board Man
Op
Board
Jul 26, 2016
554
446
snow layers, but I don't think there are any for the top.
 

Fire

Minr Wiki Writer
Greenie
Board
May 13, 2015
341
219
NoAI, silent, invincible shulkers summoned at very specific heights might do the trick.
 

Chillers

Administrator
Op
Oct 26, 2013
1,560
910
Scripts can detect if a block is in a location.

There could be a walk script on the bedrock that checks if the exit is properly open. If so it removes the barrier.

3018
 

CreepaShadowz

Spawn Maintainer
Mod
Apr 21, 2014
1,097
522
Scripts can detect if a block is in a location.

There could be a walk script on the bedrock that checks if the exit is properly open. If so it removes the barrier.
I think using a translucent block (stained glass?) would be better. Without the visual cue, the player would naturally expect that they would be able to fit through that gap and there would be no indication (I advise against a chat message) of when the passage was opened. (Also remove the glass before they walk there)

The shulker idea is cool, but may be a bit too gimmicky/not obvious to the player when they're able to fit and hard to maintain (shulkers can only be in integer positions unless mounted on another entity iirc).
 

Chillers

Administrator
Op
Oct 26, 2013
1,560
910
The only downside to this is that all 3 blocks need to be defined so for each of the doors the script creation could be time consuming.
 

Fire

Minr Wiki Writer
Greenie
Board
May 13, 2015
341
219
The only downside to this is that all 3 blocks need to be defined so for each of the doors the script creation could be time consuming.
I think all you'd need is a walk script like this:
Code:
@bypass /execute if blocks -4497 83 -4650 -4497 85 -4650 -4497 83 -4649 all run setblock -4497 84 -4651 air
^ This would be on the block at -4497 82 -4650.

All this does is run a vanilla command that tests to see if one area is exactly the same as another area, and if it is, runs a command. In this case, I've highlighted the tested area to be from -4497 83 -4650 to -4497 85 -4650, and the template 1x3x1 area is hinged on -4497 83 -4649. The template area is all air, so if the entirety of the tested area is air as well, it will clear out the glass using "setblock -4497 84 -4651 air", then and only then.

I tested one side out with this, thanks to rman. Here is a demonstration:
As you can see, only when all 3 blocks in front the glass are air does it clear away. The resets to these puzzles still work just fine, so a simple /setblock script after the door is all each side needs in addition.

Edit: I went ahead and made scripts for each side of every puzzle:
1
- Set on -4499 82 -4650
/s c w @bypass /execute if blocks -4499 83 -4650 -4499 85 -4650 -4499 83 -4649 all run setblock -4499 84 -4651 minecraft:air

- Set on -4499 82 -4652
/s c w @bypass /setblock -4499 85 -4651 minecraft:black_stained_glass

- Other side already done

- Set on -4497 98 -4658
/s c i @bypass /setblock -4499 85 -4651 minecraft:black_stained_glass
/s c i @bypass /setblock -4497 85 -4651 minecraft:black_stained_glass

2
- Set on -4473 82 -4650
/s c w @bypass /execute if blocks -4473 83 -4650 -4473 85 -4650 -4473 83 -4649 all run setblock -4473 84 -4651 minecraft:air

- Set on -4473 82 -4652
/s c w @bypass /setblock -4473 84 -4651 minecraft:black_stained_glass

- Set on -4471 82 -4650
/s c w @bypass /execute if blocks -4471 83 -4650 -4471 85 -4650 -4471 83 -4649 all run setblock -4471 84 -4651 minecraft:air

- Set on -4471 82 -4652
/s c w @bypass /setblock -4471 84 -4651 minecraft:black_stained_glass

- Set on 4470 98 -4658
/s c i @bypass /setblock -4473 84 -4651 minecraft:black_stained_glass
/s c i @bypass /setblock -4471 84 -4651 minecraft:black_stained_glass

3
- Set on -4447 82 -4650
/s c w @bypass /execute if blocks -4447 83 -4650 -4447 85 -4650 -4447 83 -4649 all run setblock -4447 834-4651 minecraft:air

- Set on -4447 82 -4652
/s c w @bypass /setblock -4447 834-4651 minecraft:black_stained_glass

- Set on -4445 82 -4650
/s c w @bypass /execute if blocks -4445 83 -4650 -4445 85 -4650 -4445 83 -4649 all run setblock -4445 834-4651 minecraft:air

- Set on -4445 82 -4652
/s c w @bypass /setblock -4445 834-4651 minecraft:black_stained_glass

- Set on -4445 98 -4658
/s c i @bypass /setblock -4447 834-4651 minecraft:black_stained_glass
/s c i @bypass /setblock -4445 834-4651 minecraft:black_stained_glass

4
- Set on -4421 82 -4650
/s c w @bypass /execute if blocks -4421 83 -4650 -4421 85-4650 -4421 83 -4649 all run setblock -4421 84 -4651 minecraft:air

- Set on -4421 82 -4652
/s c w @bypass /setblock -4421 84 -4651 minecraft:black_stained_glass

- Set on -4419 82 -4650
/s c w @bypass /execute if blocks -4419 83 -4650 -4419 85-4650 -4419 83 -4649 all run setblock -4419 84 -4651 minecraft:air

- Set on -4419 82 -4652
/s c w @bypass /setblock -4419 84 -4651 minecraft:black_stained_glass

- Set on -4417 98 -4658
/s c i @bypass /setblock -4421 84 -4651 minecraft:black_stained_glass
/s c i @bypass /setblock -4419 84 -4651 minecraft:black_stained_glass

5
- Set on -4395 82 -4650
/s c w @bypass /execute if blocks -4395 83 -4650 -4395 85 -4650 -4395 83 -4649 all run setblock -4395 84 -4651 minecraft:air

- Set on -4395 82 -4652
/s c w @bypass /setblock -4395 84 -4651 minecraft:black_stained_glass

- Set on -4393 82 -4650
/s c w @bypass /execute if blocks -4393 83 -4650 -4393 85 -4650 -4393 83 -4649 all run setblock -4393 84 -4651 minecraft:air

- Set on -4393 82 -4652
/s c w @bypass /setblock -4393 84 -4651 minecraft:black_stained_glass

- Set on -4389 98 -4658
/s c i @bypass /setblock -4395 84 -4651 minecraft:black_stained_glass
/s c i @bypass /setblock -4393 84 -4651 minecraft:black_stained_glass

6
- Set on -4369 83 -4650
/s c w @bypass /execute if blocks -4369 83 -4650 -4369 85 -4650 -4369 83 -4649 all run setblock -4369 84 -4651 minecraft:air

- Set on -4369 82 -4652
/s c w @bypass /setblock -4369 84 -4651 minecraft:black_stained_glass

- Set on -4367 83 -4650
/s c w @bypass /execute if blocks -4367 83 -4650 -4367 85 -4650 -4367 83 -4649 all run setblock -4367 84 -4651 minecraft:air

- Set on -4367 82 -4652
/s c w @bypass /setblock -4367 84 -4651 minecraft:black_stained_glass

- Set on -4366 98 -4658
/s c i @bypass /setblock -4369 84 -4651 minecraft:black_stained_glass
/s c i @bypass /setblock -4367 84 -4651 minecraft:black_stained_glass


A lot of scripts, but shouldn't take long to paste in, and much easier than using variables or defining the blocks.
 
Last edited:

CreepaShadowz

Spawn Maintainer
Mod
Apr 21, 2014
1,097
522
Just for the record, we shouldn't script the blocks right next to the door. This is because won't jump to the door if they see it is blocked, even if they have solved the puzzle. If you guys really want to scripts, add them to the buttons however this will break if there is lag.

Also don't put a setblock just behind the door, add it to the reset wherever it is (probably at the puzzle join sign).
 

Fire

Minr Wiki Writer
Greenie
Board
May 13, 2015
341
219
Just for the record, we shouldn't script the blocks right next to the door. This is because won't jump to the door if they see it is blocked, even if they have solved the puzzle. If you guys really want to scripts, add them to the buttons however this will break if there is lag.

Also don't put a setblock just behind the door, add it to the reset wherever it is (probably at the puzzle join sign).
I've added two interact scripts to each of the puzzle entrance signs that will also replace the glass.

As for the players not knowing to go towards the door after they've solved it, I can think of three solutions:
1: Have the execute scripts on every single one of the buttons, but activated after a 1.5-second delay so the piston heads are given time to clear away
2: Have a "Submit" button in each of the puzzles that runs the two execute scripts.
3: Place down a sign in each of the 6 Bench Press explanation rooms that tells the player to approach the exit once they've solved it (this one is probably the easiest)
 
Last edited:
Top