Help with a procedure for an advancement.

Started by HollowVoidGojo on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Oct 2021
Points:
568

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
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
Active 5 months ago
Joined Mar 2021
Points:
1017

User statistics:

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

If player current health = (calculate the correct one)

then do: add achievement

Active 1 year ago
Joined Oct 2020
Points:
1618

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 2 years ago
Joined Oct 2021
Points:
568

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
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)

Active 2 years ago
Joined Oct 2021
Points:
568

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
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.

Active 1 year ago
Joined Oct 2020
Points:
1618

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 1 year ago
Joined Aug 2021
Points:
628

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 31
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 

Active 1 year ago
Joined Oct 2020
Points:
1618

User statistics:

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

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

Active 1 year ago
Joined Oct 2020
Points:
1618

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

 

 

Active 1 year ago
Joined Oct 2020
Points:
1618

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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)

Active 2 years ago
Joined Oct 2021
Points:
568

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
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? 

Active 5 months ago
Joined Mar 2021
Points:
1017

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
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

 

Active 2 years ago
Joined Oct 2021
Points:
568

User statistics:

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

Just once a player takes 20 damadge they get a advancement

Active 5 months ago
Joined Mar 2021
Points:
1017

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
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

Active 1 year ago
Joined Oct 2020
Points:
1618

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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