Can´t Place block in "block Breaking Procedere"

Started by Herr_Marv on Sat, 08/08/2020 - 09:01

Topic category: Help with modding (Java Edition)

Last seen on 14:49, 23. Jan 2021
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can´t Place block in "block Breaking Procedere"
Sat, 08/08/2020 - 09:03 (edited)

So I tried to break a block and pace a different one on top of it

with stored NBT data 

At first, i tried to use the block event "when block destroyed by player"

but the problem was 

1. The block detected is now Air so the block NBT data is stored after the break

2. Cant place block with this

 

after that, I tried to use a Global event trigger "A block is broken"

now the right things are stored

 but I still can't place a block even if I just call a different Procedure to just place a block I get the message in the chat so that I can see that every statement works but no block placement.

I am on the New 2020.4 Version and use Windows 10

 

One of my tries I get every massage in Chat but no Block placement

Edited by Herr_Marv on Sat, 08/08/2020 - 09:03
Last seen on 20:52, 27. Feb 2021
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This event is triggered…
Sat, 08/08/2020 - 09:49

This event is triggered right before removing the block so if you place a new block here, it will be removed right after due to blocking removed function in MC not completing yet.

Last seen on 14:49, 23. Jan 2021
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ah okay thanks so I just…
Sat, 08/08/2020 - 09:55

ah okay thanks so I just need to wait somehow a few ticks after that is done and place the block then do you have a good idea?

Last seen on 14:49, 23. Jan 2021
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
okay so i got it to work…
Sat, 08/08/2020 - 10:35

okay so i got it to work...

and i post my solution for everyone with a similar problem

not the best way but it works 

 

here is my first check and everything to store the block date temporaly on the player scoreboard (first thing in my mind)

1

after that i go to the on player tick funktion and check if the timer is there (u can customize the timer length with a bigger number)

2

 

Last seen on 20:52, 27. Feb 2021
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In next update, you could…
Thu, 01/21/2021 - 16:03

In next update, you could use wait block to simplify this ;)