[help me] about player monitoring events and timing

Started by AirBoomDragonKing on

Topic category: Website and community discussion

Last seen on 05:01, 15. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[help me] about player monitoring events and timing

Write the module for the first time. Ask for help

Name of pill: violent walking pill

Pill introduction: it contains the magic power from the lower world. The people who can use it will be strengthened and killed in the quick delivery. But because it only releases human power in a short period of time, it will pay a price after using it.

Once satiated, all effects of satiety are reduced to half full. Gain effects: swiftness II (60s), jump II (60s), strength II (30s), HP recovery II (25s), night vision (45s), scuba (30s), and Underwater Digging (25s); after all gain effects, they will submerge (25s) and weakness (15s), and have a 5% probability of falling into poisoning (15s).

Synthesis method: pill * 1 + flame powder * 1 + gunpowder * 1 + tears of evil spirit * 1 + bone powder * 1 + rotten meat * 1 + fermented Spider Eye * 1 + iron particles * 1 + ordinary liquid medicine * 1 (bottles will be left in the workbench after synthesis)

The ordinary potion finally worked

It's like this:

① After the player takes the * * pill

Add the following effects and

Monitor the player's Potion effect, when the effect speed / jump time has been increased

Add weak and excessive potions to players

Or is it

② The timing starts when the player takes the * * pill

After 2 minutes, add the effect of weakness and obesity

 

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add set number nbt "pillTime…
Fri, 12/04/2020 - 15:08

Add set number nbt "pillTime" to entity to 2400.

Then make a new procedure called on player tick update.

If get number nbt "pillTime" > 0{

   set number nbt "pillTime" to get pillTime - 1.

} else if get number nbt "pillTime" <= 0{

    add potion hunger

    add potion weakness

}

 

Last seen on 05:01, 15. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I thank you very much! mua..
Sat, 12/05/2020 - 15:38

I thank you very much! mua..

Last seen on 05:01, 15. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't quite understand
Sat, 12/05/2020 - 16:53

I don't quite understand

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add the bottom bit to a new…
Sat, 12/05/2020 - 20:52

Add the bottom bit to a new procedure called on player tick update.

 

If get number nbt "pillTime" > 0{

   set number nbt "pillTime" to ((get pillTime) - 1)).

} else if get number nbt "pillTime" <= 0 AND get number nbt "pillTime" > -5{

    add potion hunger

    add potion weakness

    set number nbt "pillTime" to -6

 

Also you should set pillTime to get pill time - 1.

Last seen on 05:01, 15. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you give me show the …
Sun, 12/06/2020 - 03:09

Could you give me show the "Mcreate Link" ? I'm a new mcreator baby wuwuwuwuwuwuwuwuwu

Last seen on 05:01, 15. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't quite understand…
Sun, 12/06/2020 - 15:22

I don't quite understand what you said in the new process, but I do it in your When Link eaten of of Mcreator Link, and he will add those two effects to the game player after you enter the game, instead of triggering it after eating. (Learning programming is really from the beginning to dissuade, crying)

Last seen on 05:01, 15. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Learning programming is…
Sun, 12/06/2020 - 15:22

Learning programming is really from the beginning to dissuade, crying

Last seen on 05:01, 15. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't quite understand…
Sun, 12/06/2020 - 15:22

I don't quite understand what you said in the new process, but I do it in your When Link eaten of of Mcreator Link, and he will add those two effects to the game player after you enter the game, instead of triggering it after eating. (Learning programming is really from the beginning to dissuade, crying)

Last seen on 05:01, 15. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was finish thanks very…
Sun, 12/06/2020 - 15:43

I was finish thanks very very mua,but i'm a mcretor baby, than future please much much teach me ! hhhh