Cant create slot that accepts any item

Started by Sayne on

Topic category: Troubleshooting, bugs, and solutions

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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
Joined Jul 2020
Points:

User statistics:

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

bump cause edit