Starting Items
This script adds items on first time player joins, checking gamestages
Requiresstages. GameStages mod!mod is not required
// Listen to player login event
events.listen(onEvent('player.logged_in', functionevent (event)=> {
// Check if player doesn't have "starting_items" gamestagestage yet
if (!event.hasGameStage(player.stages.has('starting_items')) {
// Add the gamestagestage
event.addGameStage(player.stages.add('starting_items')
// Give some items to player
event.player.give('minecraft:stone_sword')
event.player.give({ item: Item.of('minecraft:stone_pickaxe', data:"{Damage: 10 }10}"))
event.player.give({'30x item: 'minecraft:apple', count: 30 })
}
})