diff --git a/aiocraft/mc/definitions.py b/aiocraft/mc/definitions.py index 9fc23ae..20f2092 100644 --- a/aiocraft/mc/definitions.py +++ b/aiocraft/mc/definitions.py @@ -101,7 +101,11 @@ class Item: nbt : dict damage : int # This got removed past 1.12.2 - def __init__(self, item : 'Item' = None): + def __init__(self, item:'Item' = None, id:int=0, count:int=0, nbt:dict=None, damage:int=0): + self.id = id + self.count = count + self.nbt = nbt or {} + self.damage = damage if item: self.id = item.id self.count = item.count