I want to make a command block that has a special command inside it when it is placed: to kill all users and set block to air to stop the trigger.
But I have no idea how to make it so a command block in my inventory has a command already inside when it's placed. I looked it up, but couldn't find anything on it. Is this possible on Java Edition 1.16.5?
Note: Thanks for linking a possible duplicate, but I'm looking to get a command block inside of my inventory. The other question has methods of setting a prefilled command block with /setblock
, which isn't what I'm looking for.
/setblock
. Voting to reopen. (oops, vote retracted by accident, but my argument still stands, therefore this question should be reopened.)