Accumulation of "Stacks" when killing a mob

Started by fast0w on

Topic category: Help with modding (Java Edition)

Last seen on 11:18, 26. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Accumulation of "Stacks" when killing a mob

Hello everyone, I want to make a sword that, after killing three mobs, gets any effects.

1 killed mob = 1 stack. With the accumulation of 3 stacks, we get something.

I tried to do it based on other topics, but it didn't work. I really hope that you will help!

https://imgur.com/a/jwcLEed

Screenshot of mcreator

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
by the way, there is way…
Sat, 11/06/2021 - 18:07

by the way, there is way better ways to do this, but I was against time, still works tho

Last seen on 11:18, 26. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
delete the procedure you…
Sat, 11/06/2021 - 18:29

delete the procedure you have. and put this:

https://drive.google.com/file/d/1hc8e6GkIbRNDHmrk3lYMFX6TZ18faDXt/view?…

then make a new procedure (on the create elements tab) and out this:

https://drive.google.com/file/d/1TQZv_qOlviJ0zAMu1kgHft8JpdLP5Y2e/view?…

this will reward the player if he kills 4 animal entities on 5 seconds, if he doesn't he gets a FAILED message, change the rewards etc, but whatever you do, DO NOT move any block I did, you are only allowed to remove the text blocks, if you don't want it to break at least

You sent me two indentical procedures in ur links. And can you tell me about ur timer method in these procedures, how its working?

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
uh no they different? click…
Sat, 11/06/2021 - 18:35

uh no they different? click again and make sure 

and yeah sure, basically if a player kills a mob with a golden sword, it will set an nbt tag of logic to true, and on player tick update if that tag is true, it will set a second timer of number to max of 100 ticks

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but again, I used nbt tags…
Sat, 11/06/2021 - 18:37

but again, I used nbt tags which are not the best, since you used nbt too :p I should had used variables but didn't have time so yeah- but still works :D

Last seen on 11:18, 26. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For some reason I do not…
Sat, 11/06/2021 - 19:37

For some reason I do not receive the message "Failed", and the stacks are not discarded. Maybe I'm doing something wrong?

https://imgur.com/a/FRU1Ue0

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the little procedure should…
Sat, 11/06/2021 - 19:45

the little procedure should be Player Tick Update

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
forgot to mention that sorry
Sat, 11/06/2021 - 19:45

forgot to mention that sorry

Last seen on 11:18, 26. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeeeah, its works now. Thank…
Sat, 11/06/2021 - 20:08

Yeeeah, its works now. Thank you!!!!

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
:D!
Sat, 11/06/2021 - 20:22

:D!

Last seen on 11:18, 26. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wanted to do the second…
Sat, 11/06/2021 - 22:03

I wanted to do the second phase of my blade after the first phase. I tried to do it myself, but it doesn't work well, or it doesn't work at all. (some kind of confusion in calculating stacks). Below is a link to procedures, in the main procedure there are both the first and second phases. Please change to make it work.

Link: https://drive.google.com/file/d/1PVNc4sbFUJk1_PQQ-NO5BLtGSgOXfyL6/view?…

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
okay before importing the…
Sat, 11/06/2021 - 22:55

okay before importing the procedure, add this variables to your workspace:

Variables

And delete what you have too, so it doesn't bug.

here's the procedure: https://drive.google.com/file/d/1aLRZ8Jahfh--QoVJzNWShD0AZBuRaonF/view?…

and in case you want to add another stage, I will leave you will these mini-tutorial

1. make new variables, for example: stack_3, timer_3, stage_3

2. duplicate the procedure and change the variables to their corresponding ones

3. when you add a new stage_# variable, it is because you want to add another stage, if you don't want to add another stage after the new one, you DO NOT have to make another stage_ variable

TIPS for it not to break: do not remove any blocks rather than texts. I changed NBT to Variables because Variables are way better, if you ever wish to do something similar, use variables. I simplified the procedure so it only uses 1 procedure and 1 trigger, have fun :D!

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you don't know how to add…
Sat, 11/06/2021 - 22:57

if you don't know how to add this procedure:

1. delete the 3 procedures you made

2. make the variables I showed

3. import the procedure

4. customize

Last seen on 11:18, 26. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oke, I will see tomorrow…
Sat, 11/06/2021 - 23:07

Oke, I will see tomorrow. Thanks for your work!

Last seen on 11:18, 26. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi Rex! For several days I…
Tue, 11/09/2021 - 01:36

Hi Rex! For several days I figured out how it all works. In theory, I understood everything well, but when everything comes to practice, then it does not always work. I did this procedure myself from scratch, everything seems to be logical, but for some reason It don't want to go to the second stage. I tried it in different ways, it worked a couple of times, but I redid it many times, which I have already forgotten how. What's wrong with the procedure?

https://drive.google.com/file/d/1x_NmZRs-CA3c6PM5VSn6ofGN_0yBPah4/view?…