Adding Custom Swords to Minecraft. Datapack Tutorial 4

Sdílet
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

Komentáře • 81

  • @samanzakeri2403
    @samanzakeri2403 Před rokem +1

    THE TUTORIALS ARE BACK.
    WOOP WOOP.
    thanks dude love the vids, content and datapacks

  • @TheeSlickShady
    @TheeSlickShady Před 6 měsíci +1

    Clear, concise, easy to follow
    Thanks man 🏆

    • @WASDBuildTeam
      @WASDBuildTeam  Před 6 měsíci +1

      Thanks! Idk about the concise part, but glad it worked for you!

    • @TheeSlickShady
      @TheeSlickShady Před 6 měsíci

      @@WASDBuildTeam I enjoy watching your videos on data pack creation the most; I understand your method of teaching 🏆 Thank you

  • @chicknturtle
    @chicknturtle Před rokem +1

    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

  • @existingeevee
    @existingeevee Před rokem +1

    yoo new admin upload

  • @egecandan1279
    @egecandan1279 Před rokem

    what is the extension you use for editing .mc files

  • @TheMinerOfCraftsOfficial

    it does not reset the advancement even though in the function i put advancement revoke @s only test:deal_damage

  • @Rignchen
    @Rignchen Před rokem

    4:00 you can add the sword test in the advancement so the fonction only run when needed and it reduce the useless calcul

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      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.

    • @Rignchen
      @Rignchen Před rokem

      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

    • @Rignchen
      @Rignchen Před rokem

      And if you have a lot of sword but test your nbt everytime you hit a mob it will make your game laggy

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      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.

    • @Rignchen
      @Rignchen Před rokem

      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

  • @gamingteddybear
    @gamingteddybear Před rokem

    how to make type=# tags?

  • @thijs8243
    @thijs8243 Před rokem

    Yay

  • @Walker__91
    @Walker__91 Před 5 měsíci

    How did you do the random fire chance on the magma sword?

    • @WASDBuildTeam
      @WASDBuildTeam  Před 5 měsíci

      Feel free to download the datapack and look at the code. Very straightforward.
      Basically use /random. And with a specific number set fire

  • @KisschoGames
    @KisschoGames Před 2 měsíci

    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

  • @raywhitehead2162
    @raywhitehead2162 Před rokem

    Do pickaxes next

  • @DeleteKernel
    @DeleteKernel Před rokem

    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?

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      No clue why that would happen. Doesn't seem like that should be possible.

    • @DeleteKernel
      @DeleteKernel Před rokem

      You know that both conditions are met: In the moment when arrow hits its target I hurt an entity and I hold custom sword

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      @@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.

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem +1

      @@DeleteKernel Found a very simple fix. In the deal_damage advancement, you can specify invalid damage sources. So just set all those to false.

  • @SolaFideSolusChristus266

    How do you make a recipe for a custom item?

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      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.

  • @ArdnoHraje
    @ArdnoHraje Před 5 měsíci

    how can I add drop this item with any mob for exem wither?

  • @PatrickJames-gx2tn
    @PatrickJames-gx2tn Před měsícem

    😮

  • @AdeTheCoder
    @AdeTheCoder Před rokem

    Can't we add that custom item to the creative inventory?

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      No

    • @newkamil3757
      @newkamil3757 Před 8 měsíci

      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.

  • @user-mb7if9ok8b
    @user-mb7if9ok8b Před 5 měsíci +1

    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 !

    • @WASDBuildTeam
      @WASDBuildTeam  Před 5 měsíci

      Well, these are datapacks, so maybe you tried installing it like it is a mod?
      They go in your datapacks folder of your world.

    • @user-mb7if9ok8b
      @user-mb7if9ok8b Před 5 měsíci

      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)

    • @MimiLee-dd1vt
      @MimiLee-dd1vt Před 5 měsíci

      (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

    • @user-mb7if9ok8b
      @user-mb7if9ok8b Před 5 měsíci

      Um admin?

    • @WASDBuildTeam
      @WASDBuildTeam  Před 5 měsíci

      @@user-mb7if9ok8b If you are still needing help definitely join my Discord and ask there. I can't really help in the comments section

  • @jamesandrewlinatoc4383

    how to get the mod of the custom sword's in minecraft like the lightning sword

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      I have a video on how to install the datapack

    • @DeleteKernel
      @DeleteKernel Před rokem

      @@WASDBuildTeam Also if you mean a MOD, there is a pretty easy tool for making them - mcreator.

  • @godemarty5350
    @godemarty5350 Před 6 měsíci +1

    why the datapack DOESNT WORK BRUH

    • @dominikstojizaprddvork7418
      @dominikstojizaprddvork7418 Před 6 měsíci

      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

    • @WASDBuildTeam
      @WASDBuildTeam  Před 5 měsíci

      It still works. Definitely some mistake on their end

  • @drimpy
    @drimpy Před rokem

    Where is the moba script?

  • @47music-es8yy
    @47music-es8yy Před 6 měsíci

    can you make one on customs UIs and custom bosses?

    • @WASDBuildTeam
      @WASDBuildTeam  Před 6 měsíci

      Custom UIs unfortunately aren't a thing datapacks can really make. You can use existing UIs but its generally pretty janky

    • @WASDBuildTeam
      @WASDBuildTeam  Před 6 měsíci

      As for Bosses... if I ever do a custom Mobs tutorial that would also teach bosses

    • @47music-es8yy
      @47music-es8yy Před 6 měsíci

      @@WASDBuildTeam Nice

  • @thijs8243
    @thijs8243 Před rokem

    My load function does not work, does anyone know why?

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      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.

    • @thijs8243
      @thijs8243 Před rokem

      @@WASDBuildTeam thank you, It didn't work because the tick- and load.json had a incorrect name

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      @@thijs8243 That would do it.

  • @TheAssassin000
    @TheAssassin000 Před rokem

    Do tnt next

  • @valerio8228
    @valerio8228 Před rokem +1

    #CustomOPSwordsDownload#

  • @ADox_Short
    @ADox_Short Před rokem

    FIRST COMMENT, GOOD VIDEO DUDE KEEP IT UP.

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      Are you saying this is my first good video?
      Or are you saying you are first, and the video is good.

    • @Rignchen
      @Rignchen Před rokem +1

      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

    • @ADox_Short
      @ADox_Short Před rokem

      @@WASDBuildTeam no no I meant i was the first comment and it was a good video

    • @ADox_Short
      @ADox_Short Před rokem

      @@WASDBuildTeam if that makes sense not trying to say your bad and this was the first good i love your channel

    • @WASDBuildTeam
      @WASDBuildTeam  Před rokem

      Lol, this is why punctuation matters!

  • @user-ck9jf9wk1h
    @user-ck9jf9wk1h Před měsícem

    You can actually make it with a scoreboard instead of an advancment

    • @WASDBuildTeam
      @WASDBuildTeam  Před měsícem

      Correct, using an advancement is just a bit more lag efficient and thus the correct way to do it.

  • @oddessy4307
    @oddessy4307 Před rokem

    i wish i could do this

  • @R456kk
    @R456kk Před 11 měsíci

    Where is the bedrock version???

    • @WASDBuildTeam
      @WASDBuildTeam  Před 11 měsíci

      There isn't a bedrock version

    • @R456kk
      @R456kk Před 11 měsíci

      aaaaaa i so wanted to play the bedrock version

  • @DeleteKernel
    @DeleteKernel Před rokem

    The mc build actually does nothing for mo so I have to do it all myself

  • @JoZaHandle
    @JoZaHandle Před 5 měsíci

    #nope

  • @popcat541
    @popcat541 Před 7 měsíci

    Fake

    • @WASDBuildTeam
      @WASDBuildTeam  Před 7 měsíci

      The tutorial definitely works for getting a custom sword.