Started by
fast0w
on
Topic category: Help with Minecraft modding (Java Edition)
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!
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.
not the main, but it is a problem, you also forgot to put source entity on nbt instead of event target
This can't work of course NBT + 1 and then entity dies
SET source entity NBT tag not EVENT and consequentely change all
Rex we always write messages at the same time ahahahha
lmao
Which block should I use instead of "Set source entity data number NBT Tag "stack" to 1 "? I can't find anything.
yes but no. set source entity nbt number tag "stack" to get source entity data tag "stack" + 1
use variables player persistent tho, they better, way better
Its working! Thank you so much, bro)
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
yes there is a way, however I am busy rn if you can wait I will give ya a procedure
Yeah, sure. I wait you
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
put* I put out instead of put sorry about that