1

I am trying to make the /blockdata command work on blocks within a radius of a mob. Basically, I am trying to make all signs around a zombie named "Empty_Child" change to say:

Mummy? Are you my mummy?

This is the command I am using so far, but it only works on the block the zombie is standing on: /execute @e[name=Empty_Child] ~ ~ ~ /blockdata ~ ~ ~ {Text1:"{\"text\":\"Mummy?\"}",Text2:"{\"text\":\"Are you my\"}",Text3:"{\"text\":\"mummy?\"}"}

  • NOOO! WHY WOULD YOU DO THAT?!? And it's even a great, spooky way to implement it in Minecraft, good job. But still: AAAAAHHH!!! – Fabian Röling Dec 11 '17 at 19:07
  • @Fabian Thanks! I gave the zombies gas masks (using custom heads) and they even infect villagers! I just need to find a way to get the sign editing working! – The Nameless Steve Dec 11 '17 at 19:14
  • I just remembered that it's actually possible in 1.13, because you can specify a data tag for the block that you want to replace. Remember me again once 1.13 is (or at least somewhat usable snapshots are) out to write another answer. – Fabian Röling Dec 11 '17 at 20:41
  • Btw, SethBling once made a "weeping angels" concept in Minecraft, which you could now even improve with elytra. – Fabian Röling Dec 11 '17 at 20:46
  • I actually attempted at making Weeping Angels (with Elytra, too) some time ago using Sethbling's concept, but the commands became incompatible with the latest version of Minecraft. :/ All I have for Weeping Angels so far is a stray named "Weeping_Angel" wearing Elytra... – The Nameless Steve Dec 12 '17 at 15:04
0

There's no way to use /blockdata in a radius.

I once made a command system to do something similar, but that's way too much effort and especially too much to process (I get about 5tps with it on a relatively good PC).

So I would recommend you to just execute the command multiple times, each with different relative coordinates, that should be the easiest solution for your case.

  • Thank you, but I don't know how to get those relative coordinates working. I tried adding a 1 after the ~ in a separate command block, but it failed to make a difference. – The Nameless Steve Dec 11 '17 at 19:31
  • That's very weird, it should. Can you copy the exact commands from the command history (don't type here, copy to be extra sure) and link screenshots? – Fabian Röling Dec 11 '17 at 20:32
  • /blockdata ~1 ~1 ~1 {Text1:"{\"text\":\"Mummy?\"}",Text2:"{\"text\":\"Are you my\"}",Text3:"{\"text\":\"mummy?\"}"} minecraft minecraft-commands – The Nameless Steve Dec 12 '17 at 15:07
  • No, I mean from in the game. You obviously copied the command from here, because you accidentally copied the tags. – Fabian Röling Dec 12 '17 at 16:10
  • I deleted the command block before you asked. Sorry :P – The Nameless Steve Dec 12 '17 at 17:22

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.