SOLVED: How to make a biome, that when entered, gives an item only once

Started by lamon_damon on

Topic category: Help with modding (Java Edition)

Last seen on 19:56, 12. Oct 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
SOLVED: How to make a biome, that when entered, gives an item only once
Sun, 08/11/2024 - 15:17 (edited)

I wanted to make a custom biome that when you enter, you'll receive a certain item, but you can only get it once, I know how to make it give you the item, but I don't know how to make it give the item only once when you enter that biome. If my explaining was bad, here's an example: You enter the Mesa Biome, you receive a Stick, but when you reenter the Mesa Biome you won't get anything anyone, it's a one time thing. If someone knows, help would be much appreciated! 

MCreator Version: 2023.1 

Edited by lamon_damon on Sun, 08/11/2024 - 15:17
Last seen on 08:53, 13. Oct 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a global variable of…
Fri, 08/09/2024 - 14:09

make a global variable of type logic, with scope player_persistent and initial value false, then this procedure: https://imgur.com/PaB9zsu 

Last seen on 19:56, 12. Oct 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know if I'm not…
Fri, 08/09/2024 - 15:10

I don't know if I'm not looking correctly, but I can't find the "not" block, the "get... for entity" block and the "set... to true for entity" block, I even searched and I couldn't find anything...

Last seen on 08:53, 13. Oct 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the not block is in the…
Fri, 08/09/2024 - 15:33

the not block is in the logic tab, get and set for entity are in the variables tab, the "for entity part" only appears after you take them and set the variable to the player_persistent one (the one I called "once")

Last seen on 19:56, 12. Oct 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, found them, thank you!
Fri, 08/09/2024 - 15:50

Oh, found them, thank you!

Last seen on 08:53, 13. Oct 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome
Fri, 08/09/2024 - 15:58

You're welcome