This commit is contained in:
2023-09-09 14:02:11 +02:00
parent b04244ae08
commit ea042e55a6
422 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
// priority: 0
// Visit the wiki for more info - https://kubejs.com/
console.info('Hello, World! (Loaded server scripts)')

View File

@@ -0,0 +1,12 @@
// Listen to player login event
PlayerEvents.loggedIn('player.logged_in', event => {
// Check if player doesn't have "starting_items" stage yet
if (!event.player.stages.has('starting_items')) {
// Add the stage
event.player.stages.add('starting_items')
// Give some items to player
event.player.give(Item.of('patchouli:guide_book', '{"patchouli:book": "patchouli:patatapack_guide"}'))
event.player.give('10x create:bar_of_chocolate')
event.player.give('2x create:builders_tea')
}
})