This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
5
Giving Players Pre-Configured Command Blocks
Post Flair (click to view more posts with a particular flair)
Post Body
Hello everyone,
I am trying to give a player a command block with a command already inside of it. I used the following code to attempt to do so:
/give thrankkser minecraft:command_block{CustomName:"prebuilt",Command:"/execute @e[sort=random,limit=1] run summon minecraft:lightning_bolt"} 1
However, an issue I've encountered is that the command blocks that the player receives contains no command. What am I doing wrong?
(Looking on other sites I have found similar syntax schemes used with variations such as including or excluding the forward slash in the command, including or excluding the customized name)
(I am using 1.14.4 vanilla)
Author
Account Strength
90%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,376
Link Karma
16
Comment Karma
207
Profile updated: 3 days ago
Posts updated: 7 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/MinecraftCo...