Is there a way to make a block placeable on any block in adventure mode?

Is there a way to make a block placeable on any block in adventure mode? - Man in Black Jacket Sitting on Block

I would like to know a /give command that allows a block to be placed on any block in adventure mode.

For example, I'd like a cake that could be placed on any block in the game that it would usually be able to be placed on, even when the player is in adventure mode.



Best Answer

This command should work:

/give @p minecraft:cake 1 0 {CanPlaceOn:["minecraft:stone","minecraft:dirt","minecraft:grass",...,"minecraft:structure_block"]}

Fill in the ellipsis with whatever blocks are in your world, or at least the ones that you would be able to place it on.




Pictures about "Is there a way to make a block placeable on any block in adventure mode?"

Is there a way to make a block placeable on any block in adventure mode? - Drone view of modern buildings located in rows between roads in suburb of contemporary town on daytime
Is there a way to make a block placeable on any block in adventure mode? - Back view of faceless multiracial friends with backpacks blocking way for Latin American classmate
Is there a way to make a block placeable on any block in adventure mode? - Walkway of shabby residential building in snowy day



How do you make certain blocks placeable in adventure mode?

Custom Minecraft maps make good use of Adventure mode, and many custom maps are set to this game mode; players cannot break blocks or place them, therefore disallowing them to destroy the map, or add anything to it that would ruin the map. Also, it is often used to protect various multiplayer servers from griefers.

How do you make things break only certain blocks in Minecraft?

Command blocks are intended for use in adventure mode gameplay. A player can switch to Adventure mode from any other game mode by using the commands /gamemode adventure , /gamemode a , or /gamemode 2 .



How to PLACE and DESTROY blocks in Minecraft ADVENTURE MODE! (Tutorial, 1.16+ (Java))




More answers regarding is there a way to make a block placeable on any block in adventure mode?

Answer 2

This question has been asked before, you need to edit the item's NBT Tag Also, I'm pretty sure this answer covers your question:

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Lisa, Kelly, Keira Burton, Plato Terentev