1

This question already has an answer here:

I'm having a dilemma, I am trying to make a Prison Game in vanilla Minecraft, but can't make a part work.

I give the players this command to stop them from breaking blocks /gamemode a @a[r=40] When they enter onto the logs they are switched to survival /gamemode s @a[r=17]

This is my problem: From the logs, where they are in survival mode they can still reach the wood planks and destroy them up until the lime green wool

enter image description here

I hoped the gamemode switch would solve this, but unfortunately it didn't quite do it. So I was thinking there may be a way to stop this and I need them to be unbreakable or something like it.

marked as duplicate by angussidney, Community Mar 7 '16 at 8:00

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 tried using bedrock? It looks ugly but is unbreakable unless you are in creative. Also, if you only want them to be able to break certain types of blocks, you could keep them in adventure and supply them with a tool which has the relevant canDestory tags or whatever – angussidney Mar 7 '16 at 7:02
  • Yeah it looks ugly that's why I didn't use it, but your can destroy tag sounds interesting. So give an axe a tag that only allows it to break logs? – Jason_ Mar 7 '16 at 7:44
  • This answer and this answer would be helpful. Also this video. – angussidney Mar 7 '16 at 7:50
  • Let us continue this discussion in chat. – Jason_ Mar 7 '16 at 7:58