Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
For some reason, if I try using /replaceitem it won't execute the command inside of a command block. This is the command I used:
/replaceitem block -10 -58 -27 slot.container 1 ender_pearl 1