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!
by the way, there is way better ways to do this, but I was against time, still works tho
You sent me two indentical procedures in ur links. And can you tell me about ur timer method in these procedures, how its working?
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
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
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
the little procedure should be Player Tick Update
forgot to mention that sorry
Yeeeah, its works now. Thank you!!!!
:D!
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?…
okay before importing the procedure, add this variables to your workspace:
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!
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
Oke, I will see tomorrow. Thanks for your work!
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?…