Withdraw hearts
Turn hearts from your health bar into items you can trade or store.
The withdraw command lets a player pull hearts out of their own health bar and hold them as heart items. This is how players trade hearts, bank them, or hand them to a friend.
Command
/ls withdraw <amount>
/ls withdraw all<amount>withdraws that many whole hearts.allwithdraws every heart you can spare.
Rules
- You cannot withdraw your very last heart. There is a floor of 1 heart so you never drop yourself to zero.
- Only whole hearts are withdrawn. Half hearts stay on your health bar.
- You need free inventory space. If your inventory is full the withdraw is blocked and you keep your hearts.
Example
You have 8 hearts and run /ls withdraw 3.
- Your health bar drops to 5 hearts.
- You receive 3 heart items.
- Someone else can right-click those items to gain the hearts.
If you run /ls withdraw all with 8 hearts, you get 7 heart items and keep 1
heart on your bar.
Withdraw uses the normal heart item set in heart-item. Consuming a heart item
adds the heart back to whoever uses it.
This command needs the lifesteal.user permission, which is on by default. See
Permissions.