Item slots accepting certain types of items.

Started by Sasya14 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item slots accepting certain types of items.

Hi, I've tried looking for a solution but can't find an existing thread with it. I'd like to make a mod which has a block which places blocks, as such, I'd like to make an item slot that only accepts blocks, as limit stack input only seems to work with a single item, and wouldn't work with other mods. If I can't do that, is there a way of making a procedure that checks if the item in the slot is a block, and throws it out if it doesn't.

 

Thanks in advance.

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that is pretty much possible…
Wed, 02/24/2021 - 15:17

that is pretty much possible with the power of P R O C E D U R E S

but there might be a problem:
there is no thing that can check if the item inserted is a block.

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
forgot to mention there is…
Wed, 02/24/2021 - 15:19

forgot to mention

there is some way to change the slot capacity

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yea I tried that but couldn…
Thu, 02/25/2021 - 17:20

Yea I tried that but couldn't find anything that'd work

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, anyone who is looking…
Thu, 03/11/2021 - 18:16

Hi, anyone who is looking for an answer. In block procedures, there is a thing that says Convert to or AIR if conversion fails