You are not logged in.

#1 2020-04-21 04:06:59

Chibabo
Member
Registered: 2020-04-21
Posts: 5

Execute command block

Hi, I'm trying to make an automatic door for only 1 player with commands block

/execute if entity @p[distance=5,name=someone] run setblock -125 71 10 minecraft:stone_button[powered=true]

I try a bunch of things but I am still stuck into that thing

Before it was super easy... /testfor @p[name=USERNAME,r=6] with a comparator on the side of it and that's it

Offline

#2 2020-04-21 04:17:28

Cheeck_
Member
Registered: 2020-04-21
Posts: 6

Re: Execute command block

Hey big_smile

You can just place two repeating command blocks with the following commands:

execute if entity @p[name=ksebrt,distance=..5] run setblock -152 36 -54 minecraft:redstone_block

and

execute unless entity @p[name=ksebrt,distance=..5] run setblock -152 36 -54 minecraft:air

Just replace the name, distance and coordinate with the fitting data tongue

Offline

#3 2020-04-21 13:44:05

Chibabo
Member
Registered: 2020-04-21
Posts: 5

Re: Execute command block

thank you <3

Offline

Board footer