-3

I'm trying to make a map but I'm stuck on a command When a player crafts an item I want to let it only be placed on a block, like when a player crafts a crafting table, the command block will make so it's only placeable on gravel. I seen it in other maps. How do I do it? Also I want to make it so certain tools and break some blocks If anyone knows please tell me. P.S. not the /give command

marked as duplicate by Fabian Röling, IronAnvil, Virusbomb, user973, Dragonrage Feb 27 '18 at 0:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • have you heard of CanPlaceOn and CanDestroy yet? – Plagiatus Feb 24 '18 at 21:50
-2

If you wanted to make a diamond block to be able to placed on a diamond ore (for example), you must use this command in a command block or in chat:

/give @p diamond_block 1 0 {CanPlaceOn:["minecraft:diamond_ore"]}

Very complicated, I know, but the CanPlaceOn:["(yourblock)"] is the block you want it to be placed on, and the /give @p (Yourotherblock) is the block you will be placing it on.

  • 3
    A quote from the question "P.S. not the /give command" The OP does not want this answer. – IronAnvil Feb 25 '18 at 3:45

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