My command is

/give @p lever 1 0 {"can_place_on" : {"blocks" : ["diamond"]}}

and it keeps responding by saying

Component 'can_place_on' is not a supported component.

What did I do wrong?


You probably mean diamond_block.

/give @p lever 1 0 {"can_place_on":{"blocks":["diamond_block"]}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.