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 11:41, 31. Mar 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Instead of adding +1 to the…
Sat, 11/06/2021 - 14:02

Instead of adding +1 to the nbt value, you're setting it to 1, so it never goes up to 3.

That's the main issue.

Try fixing that and see if it works like you want it to.

 

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
not the main, but it is a…
Sat, 11/06/2021 - 14:40

not the main, but it is a problem, you also forgot to put source entity on nbt instead of event target

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This can't work of course…
Sat, 11/06/2021 - 14:41

This can't work of course NBT + 1 and then entity  dies

SET source entity NBT tag not EVENT and consequentely change all

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Rex we always write messages…
Sat, 11/06/2021 - 14:42

Rex we always write messages at the same time ahahahha

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
lmao
Sat, 11/06/2021 - 14:42

lmao

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Instead of adding +1 to the…
Sat, 11/06/2021 - 15:05

Instead of adding +1 to the nbt value, you're setting it to 1, so it never goes up to 3.

That's the main issue.

Try fixing that and see if it works like you want it to.

Which block should I use instead of "Set source entity data number NBT Tag "stack" to 1 "? I can't find anything.

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes but no. set source…
Sat, 11/06/2021 - 15:16

yes but no. set source entity nbt number tag "stack" to get source entity data tag "stack" + 1

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use variables player…
Sat, 11/06/2021 - 15:25

use variables player persistent tho, they better, way better

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Its working! Thank you so…
Sat, 11/06/2021 - 16:34

Its working! Thank you so much, bro)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Rex, is it possible to make…
Sat, 11/06/2021 - 16:53

Rex, is it possible to make sure that if the player does not have time to kill 3 mobs in 5 seconds, then the stacks are discarded?

Now everything looks like this: https://imgur.com/a/MOw3JOF

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes there is a way, however…
Sat, 11/06/2021 - 17:20

yes there is a way, however I am busy rn if you can wait I will give ya a procedure 

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, sure. I wait you
Sat, 11/06/2021 - 17:26

Yeah, sure. I wait you

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

User statistics:

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

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

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
put* I put out instead of…
Sat, 11/06/2021 - 18:01

put* I put out instead of put sorry about that