Macro Tutorial for Minecraft [Snapshot 23w31a]

21,304
0
Published 2023-08-04

All Comments (21)
  • @lsk21kr
    Finally, variables came into commands! They said commands are not programming language but here's how it goes. If they add inline operation it would be much easier to implement data packs.
  • @AgentM124
    Gotta love that syntax highlighting. Showing you all the macros in your script.
  • @hidd3n_
    This is a great addition indeed. It removes the need for so many work arounds it kinda feels like a mini commands update alongside /random haha.
  • @aslv
    mojang is on a roll wtf im hoping that they add a score attribute because getting storage values does not sound fun or user friendly
  • @enderspider5001
    This and /random are such great features. Minecraft is going to thrive as a platform for easy game creation instead of an actual game in a couple of years just you wait
  • @jucanavazreque3429
    I love your tutos, you always do them super fast when an update rolls out and they're some of the best I can find out there :)
  • I just finished programming a method to do exactly this with TP commands in the current version. AND I’ve been doing work around methods for tons of things solved by the /random command coming. I mean this are SO useful, but fates really spitting on my work here 😭
  • @NeedForMotivationn
    It is important to know that this also copies the suffix (Unbreakable:1b for example) and that "b" letter will mess up your code. You need to use a command to remove that suffix and convert the value into a string. This happened to me while I was working on combining it with /damage command and had to remove the float suffix.
  • @codexed-i
    MINECRAFT IS NOW OFFICIALLY AN INTERPRETER FOR A FUNCTIONAL PROGRAMMING LANGUAGE OMGGG
  • @dbrighthd
    this is actually insane. ive been making datapacks for years and this will make this so much easier
  • @Njb-yp4td
    I am so excited about the possibilities this provides! I have wanted function arguments for SO long now, and we seem to finally be getting them! They actually made it easier to translate a scoreboard into a dynamic value then I thought. I thought you would have to stringify the scoreboard first.
  • @Kamorzy
    The main reason I never got much into command blocks and datapacks are the crazy workarounds necessary for even the most basic things I wanted to do. I always wondered why it was made to be so difficult that even universally useful concepts like variable inputs were passed up on. Glad they're finally improving it so I can finally wrap my brain around it and get into it.
  • @NotABean_
    man this makes me wanna get into datapacks again!
  • @tanck4933
    So pretty much, it’s like a function with parameters. So cool!
  • @a_soulspark
    can't wait to see how macro techniques evolve over time! knowing how powerful they are in C++, we should see some interesting discoveries here as well very soon
  • @matts7327
    Thanks for making these tutorials. It's interesting all the implications of adding macros. Surprised they are letting a macro be a command directly.
  • @QUAM12
    What a favorite update! I think I can make personal storage, personal boss bar, etc! It's surprising!
  • @FoxworthyGames
    I'm already using this to finish a datapack I've had in mind for a while. It technically would have been possible without macros, but it would have been really annoying and taken longer than just being able to do this. The current plan for this is to have players sign a book and quill containing the game rules at the start. When the book is signed, the datapack can take and store the author's username into the page of a NEW written book given to all players. The pages in this new written book are used for the mechanic of executing commands targeting those specific players, but it should be designed so that you can target a particular player by-username without typing ANY additional commands, and while still restricting the commands which can be run. Basically every player has a page with command links that target them and only them. The villager changes are abysmal, but I'll give them credit- this and the random command are the greatest changes made to datapacks/command functionality since /execute store
  • @PGJVids
    i didn't realize that you could inject entire commands into the functions. There is probably something fancy you can use that for like randomizing the order of command executions in a function.
  • @DumpsterFireDev
    I had a datapack where you loose a max heart every time you die but could craft new ones and now I can set the max health way easier! I can't wait to struggle to change it for a few hours and then figure out that a misspelling was the problem!