Started by
Hazzah_
on
Topic category: Help with MCreator software
I have made this procedure for when a custom block is right clicked: https://imgur.com/a/8YXzwyA
But when I try it, it consumes the whole itemstack, and doesn't change the block contents.
However, when I have more of the same item it consumes it like this...? : https://imgur.com/a/2OP1aPH
Then is kinda works, but taking the items out of the block, makes them ultimately disappear.
I really don't know what could've caused this, and I already have some workarounds for the system, but maybe it's program's bug.
1. i noticed that in the procedure you provided there is no consistency with passing the blocks location.
the blocks location x y-1 z then x y z
2.also when you get the item from "Main hand of Entity" you are getting the amount as well.
3. some events are called more then 1 time so make sure you have the right if statements ready for that.
(example) this procedure provided in the first image url states that if you have nothing in the blocks slot 0 - 4
it will replace that slot with the item in main hand. so if you have nothing it sets blocks slot to nothing.
4.you have "Remove 1 item in main hand of entity from entity target of main inventory" (This is grabbing the entire amount of items in that hand and removing it all)
for the 4th problem i stated, you can use the shrink (item) for amount.
this will fix that issue of taking all the items and it will only take 1.
sorry it will only take the amount specified. in the shrink amount.
It might be a problem with MCreator
I limited the procedure to this: https://imgur.com/a/Gvlh9qH
What it did is: It didn't add an item in the block's slot, the itemstack in hand gets removed whole (not only specified 1), and the sound plays.