Unable to remove buckets from crafting table

Published by smmmadden on Sat, 03/21/2020 - 04:08
Status
Outdated
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

I have an issue with the 1.9.1 version for 1.12.2 Minecraft that I'm trying to remove buckets that were used for crafting a recipe.  One was a bucket of milk, the other water.  After crafting, the liquids and other ingredients are removed, but the empty buckets remain.  I added a procedure that I thought would handle removal of items out of the crafting table slots (2 and 4 for one recipe and 2, 4, 6 and 8 for the other).  I'm wondering if there is some other step required because the empty buckets have two states to them (full/empty)?

Recipe 1  Recipe 2

2 bucket removal

4 bucket removal

These procedures are called from the procedure providing the item in slot 0 to the player and it works along with the procedure immediately after the above to add experience points.

I haven't migrated this code to 2020-1 yet as I'm trying to make sure this works here first.  Thanks! -Steve

Issue comments

  1. I can't provide support for 1.9.1 here, the rules are clear on this
  2. I am not entirely sure you can access workbench slots in this manner as Minecraft devs did not intend this usage so the behaviour of this will be unpredictable

I understand, thanks.  I started with the Template Library | GUI Template - Crafting Table, so was expecting that would work since it is included by default.  I'll migrate the code to 2020-1 and see if it is reproducible.  Thanks!

Migrated to 2020-1 and rebuild mod using 1.12.2 (Forge b2768), and still the same behavior exists. I also verified that the Template Library doesn't look like anything changed for GUI Template - Crafting Table. The empty buckets do not get removed when procedure is called. Thanks, Steve

empty buckets

procedure

The probably it is point 2.:

I am not entirely sure you can access workbench slots in this manner as Minecraft devs did not intend this usage so the behaviour of this will be unpredictable

Workbench is a very special instance of the container as it does not hold its items inside. You will most likely will be able to use this properly in 2020.2 with new GUI procedures.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.