New Procedure for item automation

Started by zSemper on

Topic category: Feature requests and ideas for MCreator

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
New Procedure for item automation
Wed, 05/21/2025 - 22:12 (edited)

Two new procedures for automating item transport:

both using code from IItemHandler in package net.neoforged.neoforge.items;

 

1. Get Number of Slots: 

Returns number of slots in a gui, using: int getSlots();

 

2. Is Slot (SlotID) an Input slot:

Returns a boolean if a stack amount of items can be put into a slot, using: boolean isItemValid(int slot, ItemStack stack);

Edited by zSemper on Wed, 05/21/2025 - 22:12