Cant create slot that accepts any item

Started by Sayne on Sun, 05/01/2022 - 12:39

Topic category: Troubleshooting, bugs, and solutions

Last seen on 18:51, 25. Jun 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Cant create slot that accepts any item
Mon, 05/02/2022 - 10:08 (edited)

GUI slot doesnt allow any item to be put in even though the settings are set so that it can. (Image)

Update 1: By pasting the code snippet below into the code, specifically into the "this.customSlots.put(0, this.addSlot(new SlotItemHandlet(Internal, 0, 25, 8) { }))" section i am able to create a slot that accepts any item. However, it seems that the player MUST shift click it in, as it doesnt allow to player to just place items in normally.
 

@Override
			public boolean mayPlace(ItemStack stack) {
				return true;
			}

 

Edited by Sayne on Mon, 05/02/2022 - 10:08
Last seen on 18:51, 25. Jun 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
bump cause edit
Mon, 05/02/2022 - 10:07

bump cause edit