(RESOLVED) how to make an item only spawn once when player loads in

Started by TheropodaYT on

Topic category: Help with MCreator software

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(RESOLVED) how to make an item only spawn once when player loads in
Fri, 11/29/2024 - 05:35 (edited)

every time I load in. the guidebook that should only spawn once proceeds to spawn like a thousand of them

 

i wonder how i can fix that :/

Edited by TheropodaYT on Fri, 11/29/2024 - 05:35
Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait, wrong category. it…
Fri, 11/29/2024 - 05:17

wait, wrong category. it should be help with minecraft modding, whoops!

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh nvm, got it fixed
Fri, 11/29/2024 - 05:21

oh nvm, got it fixed

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
also, ardaivona on hold…
Fri, 11/29/2024 - 15:58

also, ardaivona on hold while i work on other stuff, but i will make 3.0 in the mean time

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sweet, happy to know you got…
Mon, 01/06/2025 - 18:41

Sweet, happy to know you got it fixed.

I used something similar recently.

I used a player_persistent logic variable that started false

then a procedure that had the global trigger of player enters world

then check to see if the variable is false, and if it is, set it to true and drop the item

That way the first time any player enters the world ever they will be given the item, but not ever again.

Using something like player spawns and a player_lifetime variable would make it possible to give items every time a player respawns, too.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry to just jump in, but…
Mon, 01/06/2025 - 18:42

sorry to just jump in, but if someone comes looking with a similar issue you might be able to use that^^^ as a solution