Need a sword with a custom name and enchantments, or several items for a player at once? Better Give lets you give items with a command: choose the recipient, set the amount, and customize the item’s properties. If the inventory is full, the remaining items will appear at the player’s feet. 🛠️
The script responds to the event my:giveThe command specifies the item ID, recipient, and amount: you can write myselfinstead of a player, and use a scoreboard objective name instead of a number. The value none means the default amount — 1. For a player name, the script looks for an exact match without regard to case; if the player isn’t found, the item won’t be given. The final amount is limited to the range from 1 to 64.

Customize the item to suit your idea 🎮
You can add item properties after the main parameters. Their values must be in this exact order and are separated by vertical bars:
| Position | Property | What it configures | Example |
|---|---|---|---|
| 1 | Name | Item name | Excalibur |
| 2 | Lore | Description lines; \n separates the lines |
Line 1\nLine 2 |
| 3 | Keep | If you specify truethe item is kept after death |
true |
| 4 | Lock | Movement restriction: slot or entire inventory | slot |
| 5 | Place | Blocks the item can be placed on in Adventure mode | minecraft:stone,minecraft:dirt |
| 6 | Destroy | Blocks the item can destroy in Adventure mode | minecraft:obsidian |
| 7 | Enchants | Enchantments in “type:level” format, separated by commas | sharpness:5,unbreaking:3 |
For example, this command gives you a diamond sword with the specified name, lore, and enchantments:
/scriptevent my:give minecraft:diamond_sword myself 1 God Sword | Slays monsters.\nVery shiny.|true|none|none|none|sharpness:5,unbreaking:3
When setting properties, don’t put spaces around separators | or commas within block or enchantment lists. For example, use |true|slot|minecraft:dirt,minecraft:grass|minecraft:gold_block,minecraft:diamond_block|sharpness:3,unbreaking:3, not the version with spaces between these values. The example above preserves the command as originally written.

What happens if the inventory is full
The item is first added to the main inventory. If there isn’t enough room, the script spawns the remaining items on the ground at the recipient’s feet, so they aren’t lost. This is handy when giving a full set or setting an amount with a scoreboard objective. 📦
