init
This commit is contained in:
commit
a956daf8e2
2351 changed files with 163047 additions and 0 deletions
15
kubejs/server_scripts/fixes_tweaks/Starting_Items.js
Normal file
15
kubejs/server_scripts/fixes_tweaks/Starting_Items.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* One-time give of items to new players
|
||||
*/
|
||||
|
||||
PlayerEvents.loggedIn(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")
|
||||
// remove the TOP note
|
||||
event.player.inventory.clear()
|
||||
// Give qb to player
|
||||
event.player.give("ftbquests:book")
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue