GPP
This datapack adds a special item called GPP that automatically interacts with the game world on the player's behalf.

When GPP is active, it independently attacks hostile mobs that are targeting you, and also grants experience orbs for successful sleep. Each player can have only one active GPP instance at a time.
Activation and Usage
To enable or disable GPP, simply hold it in your hand and press the right mouse button (by default). The active item will have an enchantment glow.
Crafting

(Netherite version is crafted instead of smithed due to current technical limitations)
Durability
Each GPP type has its own durability depending on the crafting material. Durability decreases by 1 unit for each successful mob hit. When durability reaches zero, the item becomes unusable. It can be repaired in an anvil using the appropriate material.

Attack System
GPP attacks only one mob at a time - it selects the nearest hostile mob that is targeting the player. Some neutral mobs and named creatures are ignored.
Attack speed is 0.6 seconds (12 ticks), same as standard swords. After 10 successful hits on one mob, GPP resets the target and searches for a new one, but can attack the same mob again.
Sleep Experience
When a player skips night through sleep, they receive experience orbs upon waking up. The amount of experience depends on the level of the active GPP (experience = level²).
Characteristics
GPP cannot be enchanted and is unaffected by player effects. All parameters:
| Parameter | Golden | Wooden | Stone | Iron | Diamond | Netherite |
|---|---|---|---|---|---|---|
| Attack Damage | ♥♥ | ♥♥ | ♥♥½ | ♥♥♥ | ♥♥♥½ | ♥♥♥♥ |
| Durability | 32 | 59 | 131 | 250 | 1561 | 2031 |
| Sleep Exp | 36 | 1 | 4 | 9 | 16 | 25 |
The golden version has the highest level for sleep experience calculation, compensating for weak attack and low durability. Values may change with the addition of new functionality.