Started by
lamon_damon
on
Topic category: Help with modding (Java Edition)
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
make a global variable of type logic, with scope player_persistent and initial value false, then this procedure: https://imgur.com/PaB9zsu
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...
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")
Oh, found them, thank you!
You're welcome