(Minecraft 1.10.2) A single command block that checks the location specified for air? Sends a redstone pulse if air (ie. location is “empty”)Automated tree-farm in Minecraft?How to make a tree millerCan I use dispensers or droppers to auto-replant crops?BuildCraft Filler with SaplingsCan I use command blocks to teleport a player who died?How to make a Pulse only activate on the second time activated?How do I do a /setblock for under a player?Talking to moving NPCs in Minecraft 1.13 (Java edition)In Minecraft version 1.13.2, is it possible to command a block that asks the player what command they would like to trigger in the chat?Minecraft: How do I get Mob Deaths to Open Doors?
Referring to different instances of the same character in time travel
Would letting a multiclass character rebuild their character to be single-classed be game-breaking?
(async () => )(); what is this?
Is this floating-point optimization allowed?
"A killed B" translation
Correct use of ergeben?
Is an acid a salt or not?
Why would guns not work in the dungeon?
Returning the argument of a function if the argument is not of the right type
Is purchasing foreign currency before going abroad a losing proposition?
Credit union holding car note, refuses to provide details of how payments have been applied
Why can't supermassive black holes merge? (or can they?)
What is the difference between logical consistency and logical entailment in deductive logic?
Wrapper in return method for test class
Repeating redundant information after dialogues, to avoid or not?
What would the EU do if an EU member declared war on another EU member?
Email about missed connecting flight compensation 5 months after flight, is there a point?
Is Trump personally blocking people on Twitter?
Why did the Japanese attack the Aleutians at the same time as Midway?
What could be some effects of (physical) Mana consumption that prevent long term abuse?
Is `curl something | sudo bash -` a reasonably safe installation method?
Cops: The Hidden OEIS Substring
Am I testing diodes properly?
How can I deal with a player trying to insert real-world mythology into my homebrew setting?
(Minecraft 1.10.2) A single command block that checks the location specified for air? Sends a redstone pulse if air (ie. location is “empty”)
Automated tree-farm in Minecraft?How to make a tree millerCan I use dispensers or droppers to auto-replant crops?BuildCraft Filler with SaplingsCan I use command blocks to teleport a player who died?How to make a Pulse only activate on the second time activated?How do I do a /setblock for under a player?Talking to moving NPCs in Minecraft 1.13 (Java edition)In Minecraft version 1.13.2, is it possible to command a block that asks the player what command they would like to trigger in the chat?Minecraft: How do I get Mob Deaths to Open Doors?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Being fairly new to command blocks in general, I am currently in need of a way to make a SINGLE command block check specified x,y,z coords. for "air", and, if AIR is detected at that coord. then send a redstone pulse to a different set of coordinates. This needs to be a SINGLE command block - no chaining!
This can REPEAT for as long as AIR is detected at that location (ie. as often as the command block is run (every tick?).
Can this be done in a single command block? Can it even be done at all?
For clarity, here is my objective:
I have created a tree farm, where I ALREADY HAVE a way to "harvest" the fully-grown trees. I have also used a (fairly trivial) set of command blocks to allow a "vanilla" dispenser to "plant" saplings, instead of merely "dropping" them onto the ground. The saplings are planted DIRECTLY IN FRONT of each dispenser(s). Now what I require is a way to "trigger" each dispenser to re-plant a new sapling each time a resulting tree has been harvested. Once the fully-grown tree is cleared, the location is front of each dispenser will have NEITHER a sapling nor a "tree" (wood) block present there, thus, it is "empty", and I need a way to detect this situation, and "fire" a redstone pulse back at the pertinent dispenser!
BTW, I COULD simply re-trigger every dispenser at the SAME TIME using a redstone clock, and, if the spot in front was not "empty" for any specific dispenser, then a normal sapling "toss" would result, (ie. it would NOT get "planted" that time around); I could then absorb and return the sapling back to a "collector" inventory (eg. a chest), which would then re-distribute the un-planted saplings as required. I am simply wondering if a command block could be utilized in this particular way, is all!
Thanks for any help here!
minecraft minecraft-commands
|
show 7 more comments
Being fairly new to command blocks in general, I am currently in need of a way to make a SINGLE command block check specified x,y,z coords. for "air", and, if AIR is detected at that coord. then send a redstone pulse to a different set of coordinates. This needs to be a SINGLE command block - no chaining!
This can REPEAT for as long as AIR is detected at that location (ie. as often as the command block is run (every tick?).
Can this be done in a single command block? Can it even be done at all?
For clarity, here is my objective:
I have created a tree farm, where I ALREADY HAVE a way to "harvest" the fully-grown trees. I have also used a (fairly trivial) set of command blocks to allow a "vanilla" dispenser to "plant" saplings, instead of merely "dropping" them onto the ground. The saplings are planted DIRECTLY IN FRONT of each dispenser(s). Now what I require is a way to "trigger" each dispenser to re-plant a new sapling each time a resulting tree has been harvested. Once the fully-grown tree is cleared, the location is front of each dispenser will have NEITHER a sapling nor a "tree" (wood) block present there, thus, it is "empty", and I need a way to detect this situation, and "fire" a redstone pulse back at the pertinent dispenser!
BTW, I COULD simply re-trigger every dispenser at the SAME TIME using a redstone clock, and, if the spot in front was not "empty" for any specific dispenser, then a normal sapling "toss" would result, (ie. it would NOT get "planted" that time around); I could then absorb and return the sapling back to a "collector" inventory (eg. a chest), which would then re-distribute the un-planted saplings as required. I am simply wondering if a command block could be utilized in this particular way, is all!
Thanks for any help here!
minecraft minecraft-commands
Is a comparator output that is powered if the block is empty acceptable?
– IronAnvil
Jan 27 '18 at 5:00
Hey, you know what? Let me give that some thought! I may have just over-complicated this issue! I only want to "trigger" a dispenser if the block directly in FRONT of it is currently EMPTY...it does sound like a comparator just may do the trick!
– ZTagre
Jan 27 '18 at 6:41
Darn, that won't do! I have the various dispensers too close together to be able to "lay out" the required redstone dust and the comparator required! Each dispenser is separated by only a single empty block! So, invariably, one setup for a single dispenser would interfere with the other(s)!
– ZTagre
Jan 27 '18 at 6:48
test for air and invert the signal.. might be the easiest approach
– dly
Jan 27 '18 at 8:38
Why exactly does it need to be in one command block?
– Fabian Röling
Jan 27 '18 at 10:57
|
show 7 more comments
Being fairly new to command blocks in general, I am currently in need of a way to make a SINGLE command block check specified x,y,z coords. for "air", and, if AIR is detected at that coord. then send a redstone pulse to a different set of coordinates. This needs to be a SINGLE command block - no chaining!
This can REPEAT for as long as AIR is detected at that location (ie. as often as the command block is run (every tick?).
Can this be done in a single command block? Can it even be done at all?
For clarity, here is my objective:
I have created a tree farm, where I ALREADY HAVE a way to "harvest" the fully-grown trees. I have also used a (fairly trivial) set of command blocks to allow a "vanilla" dispenser to "plant" saplings, instead of merely "dropping" them onto the ground. The saplings are planted DIRECTLY IN FRONT of each dispenser(s). Now what I require is a way to "trigger" each dispenser to re-plant a new sapling each time a resulting tree has been harvested. Once the fully-grown tree is cleared, the location is front of each dispenser will have NEITHER a sapling nor a "tree" (wood) block present there, thus, it is "empty", and I need a way to detect this situation, and "fire" a redstone pulse back at the pertinent dispenser!
BTW, I COULD simply re-trigger every dispenser at the SAME TIME using a redstone clock, and, if the spot in front was not "empty" for any specific dispenser, then a normal sapling "toss" would result, (ie. it would NOT get "planted" that time around); I could then absorb and return the sapling back to a "collector" inventory (eg. a chest), which would then re-distribute the un-planted saplings as required. I am simply wondering if a command block could be utilized in this particular way, is all!
Thanks for any help here!
minecraft minecraft-commands
Being fairly new to command blocks in general, I am currently in need of a way to make a SINGLE command block check specified x,y,z coords. for "air", and, if AIR is detected at that coord. then send a redstone pulse to a different set of coordinates. This needs to be a SINGLE command block - no chaining!
This can REPEAT for as long as AIR is detected at that location (ie. as often as the command block is run (every tick?).
Can this be done in a single command block? Can it even be done at all?
For clarity, here is my objective:
I have created a tree farm, where I ALREADY HAVE a way to "harvest" the fully-grown trees. I have also used a (fairly trivial) set of command blocks to allow a "vanilla" dispenser to "plant" saplings, instead of merely "dropping" them onto the ground. The saplings are planted DIRECTLY IN FRONT of each dispenser(s). Now what I require is a way to "trigger" each dispenser to re-plant a new sapling each time a resulting tree has been harvested. Once the fully-grown tree is cleared, the location is front of each dispenser will have NEITHER a sapling nor a "tree" (wood) block present there, thus, it is "empty", and I need a way to detect this situation, and "fire" a redstone pulse back at the pertinent dispenser!
BTW, I COULD simply re-trigger every dispenser at the SAME TIME using a redstone clock, and, if the spot in front was not "empty" for any specific dispenser, then a normal sapling "toss" would result, (ie. it would NOT get "planted" that time around); I could then absorb and return the sapling back to a "collector" inventory (eg. a chest), which would then re-distribute the un-planted saplings as required. I am simply wondering if a command block could be utilized in this particular way, is all!
Thanks for any help here!
minecraft minecraft-commands
minecraft minecraft-commands
edited 36 mins ago
pppery
8985 silver badges18 bronze badges
8985 silver badges18 bronze badges
asked Jan 27 '18 at 4:46
ZTagreZTagre
12 bronze badges
12 bronze badges
Is a comparator output that is powered if the block is empty acceptable?
– IronAnvil
Jan 27 '18 at 5:00
Hey, you know what? Let me give that some thought! I may have just over-complicated this issue! I only want to "trigger" a dispenser if the block directly in FRONT of it is currently EMPTY...it does sound like a comparator just may do the trick!
– ZTagre
Jan 27 '18 at 6:41
Darn, that won't do! I have the various dispensers too close together to be able to "lay out" the required redstone dust and the comparator required! Each dispenser is separated by only a single empty block! So, invariably, one setup for a single dispenser would interfere with the other(s)!
– ZTagre
Jan 27 '18 at 6:48
test for air and invert the signal.. might be the easiest approach
– dly
Jan 27 '18 at 8:38
Why exactly does it need to be in one command block?
– Fabian Röling
Jan 27 '18 at 10:57
|
show 7 more comments
Is a comparator output that is powered if the block is empty acceptable?
– IronAnvil
Jan 27 '18 at 5:00
Hey, you know what? Let me give that some thought! I may have just over-complicated this issue! I only want to "trigger" a dispenser if the block directly in FRONT of it is currently EMPTY...it does sound like a comparator just may do the trick!
– ZTagre
Jan 27 '18 at 6:41
Darn, that won't do! I have the various dispensers too close together to be able to "lay out" the required redstone dust and the comparator required! Each dispenser is separated by only a single empty block! So, invariably, one setup for a single dispenser would interfere with the other(s)!
– ZTagre
Jan 27 '18 at 6:48
test for air and invert the signal.. might be the easiest approach
– dly
Jan 27 '18 at 8:38
Why exactly does it need to be in one command block?
– Fabian Röling
Jan 27 '18 at 10:57
Is a comparator output that is powered if the block is empty acceptable?
– IronAnvil
Jan 27 '18 at 5:00
Is a comparator output that is powered if the block is empty acceptable?
– IronAnvil
Jan 27 '18 at 5:00
Hey, you know what? Let me give that some thought! I may have just over-complicated this issue! I only want to "trigger" a dispenser if the block directly in FRONT of it is currently EMPTY...it does sound like a comparator just may do the trick!
– ZTagre
Jan 27 '18 at 6:41
Hey, you know what? Let me give that some thought! I may have just over-complicated this issue! I only want to "trigger" a dispenser if the block directly in FRONT of it is currently EMPTY...it does sound like a comparator just may do the trick!
– ZTagre
Jan 27 '18 at 6:41
Darn, that won't do! I have the various dispensers too close together to be able to "lay out" the required redstone dust and the comparator required! Each dispenser is separated by only a single empty block! So, invariably, one setup for a single dispenser would interfere with the other(s)!
– ZTagre
Jan 27 '18 at 6:48
Darn, that won't do! I have the various dispensers too close together to be able to "lay out" the required redstone dust and the comparator required! Each dispenser is separated by only a single empty block! So, invariably, one setup for a single dispenser would interfere with the other(s)!
– ZTagre
Jan 27 '18 at 6:48
test for air and invert the signal.. might be the easiest approach
– dly
Jan 27 '18 at 8:38
test for air and invert the signal.. might be the easiest approach
– dly
Jan 27 '18 at 8:38
Why exactly does it need to be in one command block?
– Fabian Röling
Jan 27 '18 at 10:57
Why exactly does it need to be in one command block?
– Fabian Röling
Jan 27 '18 at 10:57
|
show 7 more comments
1 Answer
1
active
oldest
votes
/execute @p ~ ~ ~ detect x1 y1 z1 air 0 /setblock x2 y2 z2 redstone_block
Where point "1" is the block you are testing for air, and "2" is the coordinates of the redstone block to be placed, or output.
Additionally, if you don't want the nearest player to be executed, you could place an armor stand on top of the command block and replace @p
with @e[type=armor_stand,r=1]
1.13 syntax:/execute if block X Y Z air run setblock X2 Y2 Z2 redstone_block
– pppery
5 hours ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "41"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f325665%2fminecraft-1-10-2-a-single-command-block-that-checks-the-location-specified-for%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
/execute @p ~ ~ ~ detect x1 y1 z1 air 0 /setblock x2 y2 z2 redstone_block
Where point "1" is the block you are testing for air, and "2" is the coordinates of the redstone block to be placed, or output.
Additionally, if you don't want the nearest player to be executed, you could place an armor stand on top of the command block and replace @p
with @e[type=armor_stand,r=1]
1.13 syntax:/execute if block X Y Z air run setblock X2 Y2 Z2 redstone_block
– pppery
5 hours ago
add a comment |
/execute @p ~ ~ ~ detect x1 y1 z1 air 0 /setblock x2 y2 z2 redstone_block
Where point "1" is the block you are testing for air, and "2" is the coordinates of the redstone block to be placed, or output.
Additionally, if you don't want the nearest player to be executed, you could place an armor stand on top of the command block and replace @p
with @e[type=armor_stand,r=1]
1.13 syntax:/execute if block X Y Z air run setblock X2 Y2 Z2 redstone_block
– pppery
5 hours ago
add a comment |
/execute @p ~ ~ ~ detect x1 y1 z1 air 0 /setblock x2 y2 z2 redstone_block
Where point "1" is the block you are testing for air, and "2" is the coordinates of the redstone block to be placed, or output.
Additionally, if you don't want the nearest player to be executed, you could place an armor stand on top of the command block and replace @p
with @e[type=armor_stand,r=1]
/execute @p ~ ~ ~ detect x1 y1 z1 air 0 /setblock x2 y2 z2 redstone_block
Where point "1" is the block you are testing for air, and "2" is the coordinates of the redstone block to be placed, or output.
Additionally, if you don't want the nearest player to be executed, you could place an armor stand on top of the command block and replace @p
with @e[type=armor_stand,r=1]
edited Feb 2 '18 at 22:07
IronAnvil
5,1031 gold badge7 silver badges28 bronze badges
5,1031 gold badge7 silver badges28 bronze badges
answered Feb 2 '18 at 18:35
Prograde OfficialPrograde Official
1237 bronze badges
1237 bronze badges
1.13 syntax:/execute if block X Y Z air run setblock X2 Y2 Z2 redstone_block
– pppery
5 hours ago
add a comment |
1.13 syntax:/execute if block X Y Z air run setblock X2 Y2 Z2 redstone_block
– pppery
5 hours ago
1.13 syntax:
/execute if block X Y Z air run setblock X2 Y2 Z2 redstone_block
– pppery
5 hours ago
1.13 syntax:
/execute if block X Y Z air run setblock X2 Y2 Z2 redstone_block
– pppery
5 hours ago
add a comment |
Thanks for contributing an answer to Arqade!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f325665%2fminecraft-1-10-2-a-single-command-block-that-checks-the-location-specified-for%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is a comparator output that is powered if the block is empty acceptable?
– IronAnvil
Jan 27 '18 at 5:00
Hey, you know what? Let me give that some thought! I may have just over-complicated this issue! I only want to "trigger" a dispenser if the block directly in FRONT of it is currently EMPTY...it does sound like a comparator just may do the trick!
– ZTagre
Jan 27 '18 at 6:41
Darn, that won't do! I have the various dispensers too close together to be able to "lay out" the required redstone dust and the comparator required! Each dispenser is separated by only a single empty block! So, invariably, one setup for a single dispenser would interfere with the other(s)!
– ZTagre
Jan 27 '18 at 6:48
test for air and invert the signal.. might be the easiest approach
– dly
Jan 27 '18 at 8:38
Why exactly does it need to be in one command block?
– Fabian Röling
Jan 27 '18 at 10:57