Adding Custom Swords to Minecraft. Datapack Tutorial 4
Vložit
- čas přidán 28. 09. 2022
- Download the template datapack:
www.dropbox.com/s/l2m5nqoo0s7...
For direct help learning how to make datapacks, become a Patron:
/ wasd_build_team
Download my datapacks:
wasdbuildteam.website/data-pa...
Discord Link:
/ discord
Join our Patron server by supporting us on Patreon:
Get exclusive datapack updates and entire packs.
/ wasd_build_team
Learn about all the donation perks:
wasdbuildteam.website/donate/
*My Favorite Minecraft Server Host*
bisecthosting.com/WASD
Use Code "WASD" for 25% off your first month!
Useful Website:
MCStacker:
mcstacker.net/
Useful Minecraft Wiki Pages:
minecraft.gamepedia.com/Commands
minecraft.gamepedia.com/Data_...
minecraft.gamepedia.com/Resou...
Other Helpful Generators
misode.github.io/loot-table/
misode.github.io/predicate/
misode.github.io/advancement/
misode.github.io/worldgen/ - Hry
THE TUTORIALS ARE BACK.
WOOP WOOP.
thanks dude love the vids, content and datapacks
Clear, concise, easy to follow
Thanks man 🏆
Thanks! Idk about the concise part, but glad it worked for you!
@@WASDBuildTeam I enjoy watching your videos on data pack creation the most; I understand your method of teaching 🏆 Thank you
19:00
With sweeping edge a sword can hit multiple mobs at the same time.
I used tnt sword from your datapack on a bunch of mobs in a hole and i went 4000 blocks into the air
Lol, exactly as intended xD
yoo new admin upload
what is the extension you use for editing .mc files
it does not reset the advancement even though in the function i put advancement revoke @s only test:deal_damage
4:00 you can add the sword test in the advancement so the fonction only run when needed and it reduce the useless calcul
You can, yeah. However, then every Sword you make needs two a deal damage and on hit function and it overall just gets a lot messier. In theory it would be very mildly more optimized, but absolutely not worth it in my opinion.
Yes that's right but it's not realy a problem if you put them in folders + it's easy to automise it with python
And if you have a lot of sword but test your nbt everytime you hit a mob it will make your game laggy
Absolutely, that is why I recommended to go with Predicates instead, which don't have the same performance impact.
For my Moar Swords pack because I have 110+ swords, I actually data store the score of the custom tag into a scoreboard and then use score checks to determine what was held instead, as at that point it is far more efficient.
Though, realistically a check that only occurs when you do an action isn't the most important to optimize. You REALLY need to focus on any ticking checks that aren't optimal.
My knowledge increased a lot since I posted that comment. Now, I would store the custom tag's number inside a score, then check the score
how to make type=# tags?
Yay
How did you do the random fire chance on the magma sword?
Feel free to download the datapack and look at the code. Very straightforward.
Basically use /random. And with a specific number set fire
YOU ARE THE Best!! im doing for my friends server and ur last video didnt work for swords, but now it does! SUBSCRIBE TO THIS MAN, hope you have infinite subscribers :D
Do pickaxes next
Ahh one problem. When I shoot a bow, and quickly switch to my custom sword, custom functions still occur, so for my lightning sword I can strike a lightning from distance. How to disable it?
No clue why that would happen. Doesn't seem like that should be possible.
You know that both conditions are met: In the moment when arrow hits its target I hurt an entity and I hold custom sword
@@DeleteKernel Woah, you are right.
I thought deal damage wouldn't increase when using a bow... oh boy.
I don't currently have a solution to this.
Might be worth joining my discord and we can discuss it further there.
@@DeleteKernel Found a very simple fix. In the deal_damage advancement, you can specify invalid damage sources. So just set all those to false.
How do you make a recipe for a custom item?
That unfortunately is a tutorial I haven't made yet.
You can look up "Minecraft Datapack Advancement Knowledge Book Recipe" or something and maybe find the best method.
how can I add drop this item with any mob for exem wither?
Loot tables!
😮
Can't we add that custom item to the creative inventory?
No
I may be late but you can add it to the "Saved Hotbars" Tab. If you don't want to take the entire hotbar but just 1 item, don't click ?+1 but do it as you would normally except in a different tab.
Um hey admin i cant do the mobs part even i followed your steps good but like this doesn't work if i try to make the mobs speak i cant do that even i installed your mod to check if it works but it doesn't ! it can be my computer because its laggy and slow but its still not working pls help me !
Well, these are datapacks, so maybe you tried installing it like it is a mod?
They go in your datapacks folder of your world.
No i just installed the datapack and put that in the datapacks folder
and you know mobs.json i did that and did the commands and you know i used mc build commands but it doesn't work (im not angry and sorry if im saying this late)
(I'm on phone and I'm the same person who talked to you) If you don't know what that means you copied and paste the Mobs name into the Mobs.json file I did the exact same thing but it doesn't work the commands the mc-build thingy I did that but it just doesn't do anything i installed your template datapack and put that into my datapacks folder to see if the datapack works but that doesn't work even if i leave the game it doesn't do anything like the flames and the mobs dont fly can you help me
Um admin?
@@user-mb7if9ok8b If you are still needing help definitely join my Discord and ask there. I can't really help in the comments section
how to get the mod of the custom sword's in minecraft like the lightning sword
I have a video on how to install the datapack
@@WASDBuildTeam Also if you mean a MOD, there is a pretty easy tool for making them - mcreator.
why the datapack DOESNT WORK BRUH
im not really a datapack expert but it might be bcz this tutorial is outdated and doesnt work now but maybe it works and you made some mistakes in your datapack so it would be better if you'd check
It still works. Definitely some mistake on their end
Where is the moba script?
can you make one on customs UIs and custom bosses?
Custom UIs unfortunately aren't a thing datapacks can really make. You can use existing UIs but its generally pretty janky
As for Bosses... if I ever do a custom Mobs tutorial that would also teach bosses
@@WASDBuildTeam Nice
16:47
My load function does not work, does anyone know why?
Make sure that every command inside of it can actually be run. If you have a single error on any command the entire load/tick function breaks.
@@WASDBuildTeam thank you, It didn't work because the tick- and load.json had a incorrect name
@@thijs8243 That would do it.
Do tnt next
Might be a bit too complicated for now.
#CustomOPSwordsDownload#
FIRST COMMENT, GOOD VIDEO DUDE KEEP IT UP.
Are you saying this is my first good video?
Or are you saying you are first, and the video is good.
I think he's saying he is the first and it's a goid video, I least I hope that's what he's saying
@@WASDBuildTeam no no I meant i was the first comment and it was a good video
@@WASDBuildTeam if that makes sense not trying to say your bad and this was the first good i love your channel
Lol, this is why punctuation matters!
You can actually make it with a scoreboard instead of an advancment
Correct, using an advancement is just a bit more lag efficient and thus the correct way to do it.
i wish i could do this
This is literally a tutorial on how to do this xD
@@WASDBuildTeam oh
....
Where is the bedrock version???
There isn't a bedrock version
aaaaaa i so wanted to play the bedrock version
The mc build actually does nothing for mo so I have to do it all myself
#nope
Fake
The tutorial definitely works for getting a custom sword.