// <--[tag]
// @attribute <i@item.with_qty[]>
// @returns dItem
// @mechanism dItem.quantity
// @group properties
// @description
// Returns the item with the specified quantity.
// -->
if (attribute.startsWith("with_qty") && attribute.hasContext(1)) {
ItemStack i = new ItemStack(item.getItemStack());
i.setAmount(attribute.getIntContext(1));
return new dItem(i)
.getAttribute(attribute.fulfill(1));
}