so: 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 :/
all you do is just keep adding more text and editing the text i recomend using the click events to trigger setblock commands that sets a block of redstone to trigger a command block depending on the option that way each command block will be fore one option and you dont have to worry about the head ache of nested commands
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. If you are using Minecraft Realms, the installation of a data pack works differently. You must download the world, open it to LAN, install the data pack, run the command "/reload", and then upload the world back onto Realms.
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.
all you do is just keep adding more text and editing the text i recomend using the click events to trigger setblock commands that sets a block of redstone to trigger a command block depending on the option that way each command block will be fore one option and you dont have to worry about the head ache of nested commands
I don't believe a click event will allow you to run multiple commands on one event, and I think it is limited by permissions.
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 tried using that mcstaker thing. Spent 2 hours trying to figure it out. I managed to make it work ONCE, but even then it didn't work when i clicked on the option. UGH who know something like this could be so complicated >:I
all you do is just keep adding more text and editing the text i recomend using the click events to trigger setblock commands that sets a block of redstone to trigger a command block depending on the option that way each command block will be fore one option and you dont have to worry about the head ache of nested commands
btw how do i make it not say the player's name, in this case ''<Samueliscool223>'' and replace it with ''[Your Thoughts]''
The Meaning of Life, the Universe, and Everything.
Join Date:
2/11/2017
Posts:
662
Member Details
It looks like there was a syntax error. If that is from your data pack, it may be because you used spaces somewhere you shouldn't have. Perhaps you could replace those invalid spaces with underscores? If that doesn't work, make sure you have your tag for the entity whatever tag you specified in the generator. I noticed you used the pig, which has a tag of "MyNPC". That may not be what you want.
If it worked once, likely you had the "distance reset" checkbox off. Turn this checkbox on, and the NPC will talk to you again after you come out and go back into range of the NPC. If it was unchecked, you must run the cleanup function and then setup function again, then it should start working again. I believe this is separate for each player, so another player may be able to chat with the NPC even if you aren't.
If you continue having problems, you could probably contact them at [email protected]
You can add the players' username into a tellraw command using the JSON "{"selector":"@p"}", but I strongly suggest you use some kind of command generator instead of attempting to do it yourself. Tellraw commands are easy to mess up and hard to debug. Mcstacker can generate one for you, other good sites for it are https://minecraftjson.com/ and http://minecraft.tools/en/tellraw.php
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.
so: 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
/tellraw @p ["",{"text":"text\n","color":"red","bold":true,"underlined":true},{"text":"option 1\n","clickEvent":{"action":"run_command","value":"setblock cmd"},"color":"none","bold":false,"underlined":false},{"text":"option 2","clickEvent":{"action":"run_command","value":"<setblock cmd>"},"color":"none"}]
all you do is just keep adding more text and editing the text i recomend using the click events to trigger setblock commands that sets a block of redstone to trigger a command block depending on the option that way each command block will be fore one option and you dont have to worry about the head ache of nested commands
Check out my mod pack! its at over 10,000 Downloads and has an official server!
https://minecraft.curseforge.com/projects/guns-n-death
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. If you are using Minecraft Realms, the installation of a data pack works differently. You must download the world, open it to LAN, install the data pack, run the command "/reload", and then upload the world back onto Realms.
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.
I don't believe a click event will allow you to run multiple commands on one event, and I think it is limited by permissions.
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
i tried using that mcstaker thing. Spent 2 hours trying to figure it out. I managed to make it work ONCE, but even then it didn't work when i clicked on the option. UGH who know something like this could be so complicated >:I
btw how do i make it not say the player's name, in this case ''<Samueliscool223>'' and replace it with ''[Your Thoughts]''
It looks like there was a syntax error. If that is from your data pack, it may be because you used spaces somewhere you shouldn't have. Perhaps you could replace those invalid spaces with underscores? If that doesn't work, make sure you have your tag for the entity whatever tag you specified in the generator. I noticed you used the pig, which has a tag of "MyNPC". That may not be what you want.
If it worked once, likely you had the "distance reset" checkbox off. Turn this checkbox on, and the NPC will talk to you again after you come out and go back into range of the NPC. If it was unchecked, you must run the cleanup function and then setup function again, then it should start working again. I believe this is separate for each player, so another player may be able to chat with the NPC even if you aren't.
If you continue having problems, you could probably contact them at [email protected]
You can add the players' username into a tellraw command using the JSON "{"selector":"@p"}", but I strongly suggest you use some kind of command generator instead of attempting to do it yourself. Tellraw commands are easy to mess up and hard to debug. Mcstacker can generate one for you, other good sites for it are https://minecraftjson.com/ and http://minecraft.tools/en/tellraw.php
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