Started by
LELTD
on
Topic category: Help with Minecraft modding (Java Edition)
How can I make it so that when a player enters the world for the first time, he will be given an item? That is, so that when a player creates a world and enters it for the first time or joins the server for the first time, he would be given a certain item (start book) from my mod.
There's a global trigger "when player joins world" or somewhere along those lines and give your custom item. Be aware that without checking if the player already got the book they will get them repeatedly when rejoining the world so I recommend to add a tag that will check if the player already joined and got the book
you can also do an advancement loot table if you add a custom advancement