Help with the event so that it happens once.

Started by atlantisdeer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with the event so that it happens once.

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?

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
instead of using an…
Sat, 11/15/2025 - 05:49

instead of using an achievement, create a variable for it. 

  • Variable
    • Give it an appropriate name
    • type: logic
    • scope: player persistent
    • Have this variable set to false
  • Next, in your procedure
    • If [get custom variable] = [false] do
    • Under "send message" add a new function to set the variable to true.

That should work.

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It also appears as though…
Sat, 11/15/2025 - 05:54

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.