Started by
Herr_Marv
on
Topic category: Help with Minecraft modding (Java Edition)
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
Edited by Herr_Marv on Sat, 08/08/2020 - 09:03
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.
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?
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)
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)
In next update, you could use wait block to simplify this ;)