5

I am working on a new map and something I need is wrong. I have a setblock command that works fine and all but the block won't update - it doesn't update at all until I place another block near it.

I tried a setblock command that setblocks a spot near it with a barrier and then air but it didn't work.

Does anyone have any ideas on how to force a block update?

  • Just in case it might be relevant: What block are you setblocking that requires a block update? – MrLemon Jan 1 '16 at 15:13
  • I am using a flower pot retextured – Apple Aiden Jan 1 '16 at 15:30
2

You can trigger block updates in two ways:

  1. With player manipulated objects.
  2. With non-player manipulated objects.

You would want to use non-player objects so that the player won't even know there was an update needed.

Here is what you should do:

  • Let's say your block needs to be updated so it can interact with nearby blocks (command blocks redstone extra).
  • You should not use /setblock to place the block as it will not have any redstone mcmeta. Instead, you should use FallingSand. Execute /summon FallingSand <X> <Y> <Z> {Block:<Your Block Here>,Time:1,Data:<Your Damage Value>,TileEntityData:{<Data Like Command Block Commands>}}. This will summon FallingSand entity that updates when it hits the ground.
  • If a solid block is not available under your block, then place your block with setblock, then set another block on top or bottom of it and break it by setting an air block in its place. Make sure the air block has the destroy handling for best results. If you use a block to update it, you should use water as it doesn't drop anything when destroyed.
  • Other alternatives are:
    • Place string on top and walk over it.
    • Run water across it.

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.