This commit is contained in:
2023-09-08 21:15:56 +02:00
parent f467b445b9
commit 37bfa8bbfd
298 changed files with 16732 additions and 1 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')
}
})