i need help, pls help

Started by RAYANIO on Sat, 11/14/2020 - 12:49

Topic category: Help with modding (Java Edition)

Last seen on 19:09, 18. Nov 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
i need help, pls help
Sat, 11/14/2020 - 12:49

how to use onplayer join world just one time like on player join world he recive paper just one time like welcome message

Last seen on 21:29, 1. Jul 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
First of all, a title like …
Sat, 11/14/2020 - 14:40

First of all, a title like 'i need help, pls help' is against MCreator's general publishing guidelines (https://mcreator.net/wiki/general-publishing-guidelines) and can get your post removed. It also doesn't let people know at a glance what your problem is and if they can help or not. Instead, you should put a short title that gets the general idea of your problem.

As for your problem, I would suggest creating a global logic variable that is 'Player persistent' and is by default true. When the player joins the world, you check if the variable is true and if it is you give the player the item. You then set the variable to false so that the game remembers it already gave the item to the player and they do not need another.

If you didn't understand any part of that, don't hesitate to ask what I meant :).