This repository has been archived on 2023-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
jland-packwiz-pack/kubejs/server_scripts/starterkit.js

26 lines
1 KiB
JavaScript
Raw Normal View History

2023-11-02 12:32:44 -05:00
PlayerEvents.loggedIn((e) => {
if (!e.player.stages.has('starting_items')) {
e.player.stages.add('starting_items')
e.player.setOffHandItem('minecraft:shield')
e.player.setHeadArmorItem('minecraft:leather_helmet')
e.player.setChestArmorItem('minecraft:leather_chestplate')
e.player.setLegsArmorItem('minecraft:leather_leggings')
e.player.setFeetArmorItem('minecraft:leather_boots')
e.player.give('4x minecraft:oak_sapling')
e.player.give('minecraft:iron_sword')
e.player.give('minecraft:iron_pickaxe')
e.player.give('minecraft:iron_shovel')
e.player.give('minecraft:iron_axe')
e.player.give('constructionwand:iron_wand')
e.player.give('naturescompass:naturescompass')
e.player.give('sophisticatedbackpacks:backpack')
e.player.give('prefab:item_house_improved')
e.player.give('prefab:item_farm_improved')
e.player.give('4x minecraft:cookie')
e.player.give('comforts:sleeping_bag_light_blue')
e.player.give('minecraft:crafting_table')
e.player.give('corail_woodcutter:oak_woodcutter')
}
})