I'm not sure why.... but my redstone contraptions wont work. Everytime I try to make a ''execute if entity @p[distance=3]'' command contraption it doesn't work and instead says ''Test failed'' whenever i test it and doesnt do anything. Note that it was working PERFECTLY FINE yesterday, but suddenly its gone all weird!! I screenshotted 2 command block contraption (that i saw online) where the command block activates without having to step on a pressure plate; one of which i made yesterday, the other which i made today. THEYRE THE EXACT SAME. and yet only one's working??? (ie, activating when i go near it) the other just says test failed. IM SO ANNOYED because i almost finished a sick ass map and this has to screw me over. Is this a bug? or am I just missing something? PLZ HELP
The Meaning of Life, the Universe, and Everything.
Join Date:
2/11/2017
Posts:
662
Member Details
You need to use "execute if entity @p[distance=..3]". The key is the "..". Without that, the command will only execute if there is a player that is exactly 3 blocks away, which is virtually impossible. The ".." before the "3" means "less than or equal to", which should fix your problem. If you use, ".." after the "3", it will mean "greater than or equal to".
If you look at the timestamp of the command, you will see that the command did in fact run within a minute of when you took the screenshot, so your redstone mechanism did activate the block. For this reason, I don't think anything is wrong with your redstone.
I would suggest to you that instead of using a comparator to send the signal, move that impulse command block so that the repeating command block is facing it. Then, change the impulse command block to a chain conditional always active command block.
This will create a command block chain so that the second block will run directly after the first block does. Because it is conditional, the second block will only run if the first block succeeded. This solution is easier, more scalable, and has better performance than a comparator. It is also more organized.
If you wanted the second block to run after the repeating block every tick whether the first one succeeded or not, you would just need to remove the conditional property. If you wanted another command block to run after the second one, you would simply need to extend the chain by placing another chain always active command block that the second command block is facing towards. This can go on as long as you want.
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
The Meaning of Life, the Universe, and Everything.
Join Date:
2/11/2017
Posts:
662
Member Details
You can also use this to define number ranges. For example "2..3" means "in between 2 and 3", and it is inclusive on both sides.
A range such as "y..x" would mean "in between y and x", instead of "y is greater than x". You are defining a number range, not a condition.
Technically, if you didn't specify a number on both sides, Minecraft would assume the highest or lowest number possible. If we represent the maximum number with "infinity", "..3" would be equal to "-infinity..3" and "3.." would be equal to "3..infinity". Minecraft allows you to omit one side of the range for convenience.
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
The Meaning of Life, the Universe, and Everything.
Join Date:
2/11/2017
Posts:
662
Member Details
You can also compress your entire chain into one block, given that it consists of a condition and an action. You can append "run <command>" to the end of an execute command, and the new command will only run if the condition succeeds. In this case, your command chain could be compressed to:
execute if entity @p[distance=..3] run say j
You can also edit the entity executor using the modifier "as <entity>". You can edit the position to execute the command at using "positioned <x> <y> <z>" or "at <entity>". You can also manipulate the command in many other ways. All of this should be documented in Minecraft itself through command auto-complete.
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
wow thats a lot of information xd though i kinda get it. Tbh there should be like a whole tutorial made by the company, minecraft itself about this stuff.. its almost impossible to find a tutorial on youtube about simple 1.13 stuff like this. o well.
so basically: im trying to make a systematic way of interacting with static objects, for my map. in this case, its an armour stand, as i want to interact with a human like figure, and not some NPC like a villager. because that would look oldschool. and my map is super dope and set in the future lol. ANYWAY i was looking for a way for the armour stand to say something, then you get 2 options you can pick as a reply, both say 2 different things essentially creating a butterfly effect (ie, it will affect stuff later on in the map., but thats irrellevant) BASICALLY i just wanna know how tf u do this because i was looking all across youtube and couldnt find a single video forfilling my exact wants. the closest i could find was this, but it only helped me with doing singular option pickings. so yah :/
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
The Meaning of Life, the Universe, and Everything.
Join Date:
2/11/2017
Posts:
662
Member Details
You can generate complex commands at mcstacker.net these commands should be used in a command block.
You can use it to summon any entity with any property available in Minecraft. It also has descriptions of each property via the question mark button.
It may be useful to create a spawn egg for a specific armor stand with specific tags. If you would like to do this, do not use the give spawn egg command, but the give armor stand command. The spawn egg will not summon armor stands correctly.
Rollback Post to RevisionRollBack
Remember those versions that minecraft pranked us with? Specifically:
Minecraft 2.0
Minecraft 1.VR-Pre1
Snapshot 15w14a
Minecraft 3D
Those are still downloadable! Watch this video for 2.0:
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
I'm not sure why.... but my redstone contraptions wont work. Everytime I try to make a ''execute if entity @p[distance=3]'' command contraption it doesn't work and instead says ''Test failed'' whenever i test it and doesnt do anything. Note that it was working PERFECTLY FINE yesterday, but suddenly its gone all weird!! I screenshotted 2 command block contraption (that i saw online) where the command block activates without having to step on a pressure plate; one of which i made yesterday, the other which i made today. THEYRE THE EXACT SAME. and yet only one's working??? (ie, activating when i go near it) the other just says test failed. IM SO ANNOYED because i almost finished a sick ass map and this has to screw me over. Is this a bug? or am I just missing something? PLZ HELP
You need to use "execute if entity @p[distance=..3]". The key is the "..". Without that, the command will only execute if there is a player that is exactly 3 blocks away, which is virtually impossible. The ".." before the "3" means "less than or equal to", which should fix your problem. If you use, ".." after the "3", it will mean "greater than or equal to".
If you look at the timestamp of the command, you will see that the command did in fact run within a minute of when you took the screenshot, so your redstone mechanism did activate the block. For this reason, I don't think anything is wrong with your redstone.
I would suggest to you that instead of using a comparator to send the signal, move that impulse command block so that the repeating command block is facing it. Then, change the impulse command block to a chain conditional always active command block.
This will create a command block chain so that the second block will run directly after the first block does. Because it is conditional, the second block will only run if the first block succeeded. This solution is easier, more scalable, and has better performance than a comparator. It is also more organized.
If you wanted the second block to run after the repeating block every tick whether the first one succeeded or not, you would just need to remove the conditional property. If you wanted another command block to run after the second one, you would simply need to extend the chain by placing another chain always active command block that the second command block is facing towards. This can go on as long as you want.
Remember those versions that minecraft pranked us with? Specifically:
Those are still downloadable! Watch this video for 2.0:
https://www.youtube.com/watch?v=PQdu9LKAdIU
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
15w14a is on this link:
http://minecraft.gamepedia.com/15w14a
1.RV-Pre1 is here:
http://minecraft.gamepedia.com/1.RV-Pre1
Minecraft 3D is here:
https://minecraft.gamepedia.com/Java_Edition_3D_Shareware_v1.34
it worked ty
ohhh i get it. this is kinda like what i learnt in maths linear equations, with reigons and stuff
except instead of y>x+3 its y..x+3
i get it now thanksssssssssssssssssssssssssssssssssssssss <3
You can also use this to define number ranges. For example "2..3" means "in between 2 and 3", and it is inclusive on both sides.
A range such as "y..x" would mean "in between y and x", instead of "y is greater than x". You are defining a number range, not a condition.
Technically, if you didn't specify a number on both sides, Minecraft would assume the highest or lowest number possible. If we represent the maximum number with "infinity", "..3" would be equal to "-infinity..3" and "3.." would be equal to "3..infinity". Minecraft allows you to omit one side of the range for convenience.
Remember those versions that minecraft pranked us with? Specifically:
Those are still downloadable! Watch this video for 2.0:
https://www.youtube.com/watch?v=PQdu9LKAdIU
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
15w14a is on this link:
http://minecraft.gamepedia.com/15w14a
1.RV-Pre1 is here:
http://minecraft.gamepedia.com/1.RV-Pre1
Minecraft 3D is here:
https://minecraft.gamepedia.com/Java_Edition_3D_Shareware_v1.34
You can also compress your entire chain into one block, given that it consists of a condition and an action. You can append "run <command>" to the end of an execute command, and the new command will only run if the condition succeeds. In this case, your command chain could be compressed to:
execute if entity @p[distance=..3] run say j
You can also edit the entity executor using the modifier "as <entity>". You can edit the position to execute the command at using "positioned <x> <y> <z>" or "at <entity>". You can also manipulate the command in many other ways. All of this should be documented in Minecraft itself through command auto-complete.
Remember those versions that minecraft pranked us with? Specifically:
Those are still downloadable! Watch this video for 2.0:
https://www.youtube.com/watch?v=PQdu9LKAdIU
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
15w14a is on this link:
http://minecraft.gamepedia.com/15w14a
1.RV-Pre1 is here:
http://minecraft.gamepedia.com/1.RV-Pre1
Minecraft 3D is here:
https://minecraft.gamepedia.com/Java_Edition_3D_Shareware_v1.34
wow thats a lot of information xd though i kinda get it. Tbh there should be like a whole tutorial made by the company, minecraft itself about this stuff.. its almost impossible to find a tutorial on youtube about simple 1.13 stuff like this. o well.
BTW i need help with something else------
so basically: im trying to make a systematic way of interacting with static objects, for my map. in this case, its an armour stand, as i want to interact with a human like figure, and not some NPC like a villager. because that would look oldschool. and my map is super dope and set in the future lol. ANYWAY i was looking for a way for the armour stand to say something, then you get 2 options you can pick as a reply, both say 2 different things essentially creating a butterfly effect (ie, it will affect stuff later on in the map., but thats irrellevant) BASICALLY i just wanna know how tf u do this because i was looking all across youtube and couldnt find a single video forfilling my exact wants. the closest i could find was this, but it only helped me with doing singular option pickings. so yah :/
If u could help that would be great ! thanks
Try this: https://mcstacker.net/npc/
It is a well known command generator that can allow you to add custom dialogue and action to your entities.
To get a description of a property, click the question mark button, and you will get a description.
It works through a data pack, which you can embed into your world file.
You will need to Summon each separate armor stand with a specific tag. Armor stands with the same tag should do the same thing.
There is a tutorial on the page.
Remember those versions that minecraft pranked us with? Specifically:
Those are still downloadable! Watch this video for 2.0:
https://www.youtube.com/watch?v=PQdu9LKAdIU
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
15w14a is on this link:
http://minecraft.gamepedia.com/15w14a
1.RV-Pre1 is here:
http://minecraft.gamepedia.com/1.RV-Pre1
Minecraft 3D is here:
https://minecraft.gamepedia.com/Java_Edition_3D_Shareware_v1.34
You can generate complex commands at mcstacker.net these commands should be used in a command block.
You can use it to summon any entity with any property available in Minecraft. It also has descriptions of each property via the question mark button.
It may be useful to create a spawn egg for a specific armor stand with specific tags. If you would like to do this, do not use the give spawn egg command, but the give armor stand command. The spawn egg will not summon armor stands correctly.
Remember those versions that minecraft pranked us with? Specifically:
Those are still downloadable! Watch this video for 2.0:
https://www.youtube.com/watch?v=PQdu9LKAdIU
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
15w14a is on this link:
http://minecraft.gamepedia.com/15w14a
1.RV-Pre1 is here:
http://minecraft.gamepedia.com/1.RV-Pre1
Minecraft 3D is here:
https://minecraft.gamepedia.com/Java_Edition_3D_Shareware_v1.34