The Meaning of Life, the Universe, and Everything.
Location:
At the Computer
Join Date:
3/25/2017
Posts:
63
Minecraft:
Drengodr
Member Details
Hi, and thanks for taking the trouble to help me out.
I am trying to make a Kit mechanism for a map, so that when a certain number of gold nuggets are placed in a chest, the chest will be replaced with the kit. I have basic knowledge of most commands, but this fancy stuff tends to trip me up. All I need is a basic structure for this command, and that should be enough for me to adapt it to all the places in Kit lobby.
The Meaning of Life, the Universe, and Everything.
Join Date:
5/24/2015
Posts:
319
Minecraft:
WhiteAutumn
Member Details
Posting here as well so you don't get duplicate responses
This was harder than I thought, I've come up with a functioning but perhaps not ideal solution.
It will work as long as you don't have a lot of players standing on top of chests at the same time. https://streamable.com/2osiy
Hi, and thanks for taking the trouble to help me out.
I am trying to make a Kit mechanism for a map, so that when a certain number of gold nuggets are placed in a chest, the chest will be replaced with the kit. I have basic knowledge of most commands, but this fancy stuff tends to trip me up. All I need is a basic structure for this command, and that should be enough for me to adapt it to all the places in Kit lobby.
Here is the base command I have been trying:
/execute @e[type=player] ~ ~ ~ detect ~ ~-1 ~ minecraft:chest 0 replace {Items: [{id:"gold_nugget",Slot: 0,Count: 25}]} clone ~ ~1 ~ ~ ~1 ~ ~ ~ ~1
It doesn't come up with the problems I am used to. The output is: Failed to execute 'detect' as Drengodr (my username).
I am in version 1.12.2 by the way.
Can somebody tell me what I am doing wrong? Thank you!
Hey guys, I wrote a Minecraft book called The Griefer Attack! Check it out!
https://www.amazon.com/Griefer-Attack-Adventure-Journals/dp/1535265426/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1499601602&sr=8-2
I'd really appreciate the support if you read it and enjoyed it!
Unfortunately, that didn't work.... This is my new command:
/execute @a ~ ~ ~ detect ~ ~1 ~ minecraft:chest -1 replace {Items: [{id:"gold_nugget",Slot: 0,Count: 25}]} clone ~ ~1 ~ ~ ~1 ~ ~ ~ ~1
I got the same output: Failed to execute 'detect' as Drengodr. Is there something else I missed?
Hey guys, I wrote a Minecraft book called The Griefer Attack! Check it out!
https://www.amazon.com/Griefer-Attack-Adventure-Journals/dp/1535265426/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1499601602&sr=8-2
I'd really appreciate the support if you read it and enjoyed it!
Posting here as well so you don't get duplicate responses
This was harder than I thought, I've come up with a functioning but perhaps not ideal solution.
It will work as long as you don't have a lot of players standing on top of chests at the same time.
https://streamable.com/2osiy
A is a repeating command block with the command
B is a chain command block with the command
C is a conditional chain command block with the command
D is a chain command block with the command