Help with a procedure for an advancement.

Started by HollowVoidGojo on

Topic category: Help with modding (Java Edition)

Last seen on 02:09, 26. Sep 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with a procedure for an advancement.
Thu, 10/28/2021 - 09:25 (edited)

So I want to make an advancement go to a player when they take 20 hearts of damage its called "Deadly Close" Im a little stuck on what its called so if someone could tell me it would be very appreciated, thanks!

Edited by HollowVoidGojo on Thu, 10/28/2021 - 09:25
Last seen on 05:03, 15. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If player current health = …
Thu, 10/28/2021 - 10:06

If player current health = (calculate the correct one)

then do: add achievement

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on top of my head I think of…
Thu, 10/28/2021 - 16:32

on top of my head I think of

Before entity dies

if event target entity current health = 20

 do grant achievement to event target entity: ADV

Last seen on 02:09, 26. Sep 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you but I do not see…
Fri, 10/29/2021 - 00:50

Thank you but I do not see any code saying "If event target entity current health = 20" the most I can find is "current health of event target entity)

Last seen on 02:09, 26. Sep 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also to correct, I want to…
Fri, 10/29/2021 - 00:51

Also to correct, I want to calculate how much damage the player takes whilst they are on the world and when they get 20 damage they get the advancement.

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes, that's what the…
Fri, 10/29/2021 - 00:55

yes, that's what the procedure is for, and you don't find the block, you construct it, search tutorials on how to make procedures on Yt

Last seen on 15:08, 8. May 2022
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Example: going from full…
Fri, 10/29/2021 - 04:54

Example: going from full health to 1

On player tick

If entity health = 20, wait like 15 ticks then 

If entity health = 1, add advancement 

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but that will fail on almost…
Fri, 10/29/2021 - 05:11

but that will fail on almost all cases, so just do mine

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I believe Before Entity Dies…
Fri, 10/29/2021 - 05:16

I believe Before Entity Dies doesn't exist so do this:

Entity dies Global Trigger

if not event target entity has unlocked advancement: "YOUR_ADVANCMENT"

  do Cancel Global Trigger 

        if health of event target entity = 20

          do (Kill player) 

                Grant Advancement to event target entity: ADVANCEMENT

 

 

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity dies Global Trigger…
Fri, 10/29/2021 - 05:17

Entity dies Global Trigger

if not event target entity has unlocked advancement: "YOUR_ADVANCMENT"

  do Cancel Global Trigger 

        wait 2 ticks then do:

           if health of event target entity = 20

          do (Kill player) 

                Grant Advancement to event target entity: ADVANCEMENT

 

(forgot to put the Wait part)

Last seen on 02:09, 26. Sep 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Any other way? Its kind of…
Fri, 10/29/2021 - 10:03

Any other way? Its kind of confusing, if you have discord add me on "The Last Cat Boy#5556" (Without the quotes) and could we vc at some point so you could help me? 

Last seen on 05:03, 15. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Explain exactly what you…
Fri, 10/29/2021 - 11:39

Explain exactly what you need and we will help you. Every time player takes 20 damage ? Or just once ?

Please exactly explain and we will help you

 

Last seen on 02:09, 26. Sep 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just once a player takes 20…
Fri, 10/29/2021 - 12:14

Just once a player takes 20 damadge they get a advancement

Last seen on 05:03, 15. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
As already explained you, 20…
Fri, 10/29/2021 - 13:56

As already explained you, 20 damage is 10 hearts so when player current health = (write what you want here) then add achievements

I would do this way but you can gain some outcome different systems

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you want I will take a…
Fri, 10/29/2021 - 15:53

if you want I will take a video on how to make the procedure