Started by VegaOrionis on Fri, 09/26/2025 - 09:02 Topic category: Help with MCreator software Is it possible to set slots in the created block to only put specific items into it? Jump to top Okay, thanks, I will check in practice someday whether it will really work. Jump to top Permalink Log in or register to post comments https://imgur.com/a/bA8YztIHow to modify the code to put 2 different items in one slot? Jump to top Permalink Log in or register to post comments if you just want a few items, like 2, you can just add an or statement like, return (new ItemStack(Blocks.GOLD_BLOCK, 1).getItem() == stack.getItem()) || (new ItemStack(Items.STICK, 1).getItem() == stack.getItem()); Jump to top Permalink Log in or register to post comments I need to learn Java someday, Thanks for the help, it works! Jump to top Permalink Log in or register to post comments awesome :3 Jump to top Permalink Log in or register to post comments Pagination First page first Previous page previous Page 1 Current page 2
Okay, thanks, I will check in practice someday whether it will really work. Jump to top Permalink Log in or register to post comments
https://imgur.com/a/bA8YztIHow to modify the code to put 2 different items in one slot? Jump to top Permalink Log in or register to post comments
if you just want a few items, like 2, you can just add an or statement like, return (new ItemStack(Blocks.GOLD_BLOCK, 1).getItem() == stack.getItem()) || (new ItemStack(Items.STICK, 1).getItem() == stack.getItem()); Jump to top Permalink Log in or register to post comments
I need to learn Java someday, Thanks for the help, it works! Jump to top Permalink Log in or register to post comments
Okay, thanks, I will check in practice someday whether it will really work.
https://imgur.com/a/bA8YztI
How to modify the code to put 2 different items in one slot?
if you just want a few items, like 2, you can just add an or statement like,
return (new ItemStack(Blocks.GOLD_BLOCK, 1).getItem() == stack.getItem()) || (new ItemStack(Items.STICK, 1).getItem() == stack.getItem());I need to learn Java someday, Thanks for the help, it works!
awesome :3