give item at the start of the game

Started by LELTD on Mon, 01/24/2022 - 08:50

Topic category: Help with modding (Java Edition)

Last seen on 13:12, 28. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
give item at the start of the game
Mon, 01/24/2022 - 08:50

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.

Last seen on 05:12, 14. May 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There's a global trigger …
Tue, 01/25/2022 - 01:35

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

Last seen on 23:35, 19. May 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
you can also do an…
Sat, 02/12/2022 - 04:07

you can also do an advancement loot table if you add a custom advancement