Item Attributes
maxUsingDuration
This attribute defines how long the item can be in use (hold right mouse button) in ticks. This has to be 32 for foods and drinks.
Examples
// Default value
maxUsingDuration[0] = 0;
// ...
maxUsingDuration[31] = 0;
// Default value food
maxUsingDuration[0] = 32;
// ...
maxUsingDuration[31] = 32;
maxUsingDuration[27] = 1000;
maxUsingDuration[0] = 0;
// ...
maxUsingDuration[31] = 0;
// Default value food
maxUsingDuration[0] = 32;
// ...
maxUsingDuration[31] = 32;
maxUsingDuration[27] = 1000;