Started by
atlantisdeer
on
Topic category: Help with Minecraft modding (Java Edition)
Hey, guys! I want to make it so that when I wake up, certain actions are triggered only once in the entire game. Not every time you wake up, but only once. I didn't understand how it could be done simply, I tried it through an achievement. I don't understand how to make it work. If I set "Without an external trigger", then the sequence of actions does not work at all. If I set it to "Upon receipt of achievements", it works after each achievement. If I set "The player wakes up", every wake-up also works. How do I make it work once?
https://iimg.su/i/lqIHz0
instead of using an achievement, create a variable for it.
That should work.
It also appears as though you have your procedure set wrong. You are checking if the player has the achievement and proceeding if they do, making it so that every time you sleep, if you have the achievement, you will be struck by lightning.
Alternative to what I said, you can also try placing a "not" operator before your conditional statement to make it so that the block will only proceed if you do NOT have the achievement.
umm I don't know why but that link set off my anti virus