#How can you check for how many items a blockentity inventory has?

4 messages · Page 1 of 1 (latest)

low cradle
#

title says it all, just need to write something that makes sure there's only one item inside for it to continue the code.

frozen bluffBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

blazing pagoda
#

assuming you have your blockentity, you should be able to access its persistentData field and subsequently access its size() method;

myBlockEntity.persistentData.size()
#

let me know if that helps at all.