Thanks both of you for a big amount of help!! I will commence my tinkering as soon as my kids will let me!
Alderondark
1
Thanks both of you for a big amount of help!! I will commence my tinkering as soon as my kids will let me!
Alderondark
2
This is an entirely trivial hack of Megacrafter107's build to make it a bit more compact:
text link = https://imgur.com/SDgBkVX
Remove the two wood planks @ ~ 11 o'clock & place the RS torch on the planks behind the piston.
It retains the pulse length range of during which water is dispensed (2-11 RS ticks) vs the OP design with (6-27 RS ticks) [As pictured OP design is set to produce a 21 RS tick pulse ]
Moving the first repeater in the line back one space (toward the UR in the pic from Megacrafter107) would provide space for two additional repeaters and increase the available water pulse lengths to 4-19 RS ticks.
If 21 RS ticks is actually the required delay, the first repeater in Megacrafter107's design would need to be two back in order to allow another one or two repeaters.
[Either of these expansions requires enough room that an alternate delay timer can be built, but it is unlikely to be less expensive.
The one I fit into the single step expansion size required two comparators, two hoppers, a sticky piston and a RS block
It does however allow considerably greater flexibilty in setting the pulse length...
text link = https://imgur.com/5uW8UXf
One stack (planks) + 46 items (charcoal) in the furnace >> output 9 strenght ; the near hopper (with the sign) 3 stacks + 10 item 'A' & 4 item 'B'; the rear hopper 3 stacks + 10 item 'C' . [Note: only item 'B' can tranfer giving a 4x3.5 = 14 RS tick delay the other 7 RS ticks are added by the two repeaters with the 1 tick delay from the comparator compensating for the RS torch delay.]
This is slightly smaller, but not as flexible as the standard dropper latch pulse extender https://minecraft.gamepedia.com/Pulse_circuit#Pulse_extender which I was unable to fit into the single step expansion sized space.]
2
On the assumption that you have a redstone torch tower there this would work for you...
1
I tested your commands and they work fine. Check if your command blocks are set up correctly.
1
The Count tag full item id is required in every ArmorItems object.Thanks for the correction, eglaios.
1
The command will be able to detect the value but it won't be displayed in-game. The reason is that the value has to be stored as a string. And to be a string, it needs to have a pair of double-quotes around it. If you use Name:"stick", the game will store that value as stick. But if you use Name:"\"stick\"", the game will store that value as "stick" (which is the correct format). And you need to "escape" the inner pair of double quotes because the game can't store a string inside another string. I just wanted to explain that so anyone reading this knows why the backslashes are required.
Anyway, back to the original problem. The NBT data should be inside the nbt tag in the selector. Here is the correct version:
Also, I assumed that the nametag was renamed using an anvil so I changed the name format to '{"text":"substation"}' because that's the format anvils use. You can change it if you didn't use an anvil.
2
Here's a list of all the stat types: https://minecraft.gamepedia.com/Statistics#Statistic_types_and_names
and right below that is a list of all the custom stats.
2
The scoreboard system has some built-in criteria for detecting actions like walking, sprinting, jumping, sneaking, etc.
Create an objective like this:
The value of this objective will increase every time the player sneaks. Now all you need is a repeating command block with the detection command:
and a chain command block that will reset the value:
1
The total amount is stored in the Coins objective of the fake player global. So you should decrease global's objective instead of the player's objective:
1
1
What do you mean by "show up as a scoreboard"?
I tested the command and got this output: MegaCrafter10 Collected 1 coins.
1
Like this:
2
As others have said, you need to change @s to @a. Also, the dx, dy, and dz arguments don't use relative coordinates. x, y, and z are the coordinates of one corner of the area, and the dx, dy, and dz are the width, height, and length of the area. More info about these arguments: https://minecraft.gamepedia.com/Commands#Selecting_targets_by_volume.