Accumulation of "Stacks" when killing a mob

Started by fast0w on

Topic category: Help with Minecraft modding (Java Edition)

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

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.

 

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

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

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

Joined Oct 2020
Points:

User statistics:

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

lmao

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.

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

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

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)

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

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 

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

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

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