One minute
Minecraft Gamemode Tutorials
Here I will be putting guides on adventure mode and other gamemodes
Adventure Mode
To get a block to be placed on an item in adventure mode:
/give @p lever[minecraft:can_place_on={predicates:[{blocks:"sandstone"}]}] 1
To give an item that can break certain blocks in adventure mode: How To Destroy Blocks with Can Break Component Youtube guide on this
/give @p minecraft:iron_pickaxe[can_break={blocks: "minecraft:sandstone"}]
Giving super tools
Give a sword that can never break /give @p netherite_sword[enchantments={“minecraft:sharpness”:5,“minecraft:mending”:1,“minecraft:unbreaking”:3},unbreakable={}] 1
Give a super sword (This only goes up to 255 for enchants) /give @p minecraft:diamond_sword[enchantments={“minecraft:sharpness”: 100}] 1