Problem with adding item from hand to a block

Started by Hazzah_ on Sat, 01/16/2021 - 16:22

Topic category: Help with MCreator software

Last seen on 17:59, 2. Mar 2021
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Problem with adding item from hand to a block
Sat, 01/16/2021 - 16:22

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.

 

Last seen on 20:49, 8. Feb 2021
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
1. i noticed that in the…
Sat, 01/16/2021 - 23:15

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)

Last seen on 20:49, 8. Feb 2021
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
for the 4th problem i stated…
Sat, 01/16/2021 - 23:20

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. 

Last seen on 20:49, 8. Feb 2021
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
sorry it will only take the…
Sat, 01/16/2021 - 23:21

sorry it will only take the amount specified. in the shrink amount.

Last seen on 17:59, 2. Mar 2021
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It might be a problem with…
Sun, 01/17/2021 - 12:24

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.