Тёмный

Macro Tutorial for Minecraft [Snapshot 23w31a] 

Cloud Wolf
Подписаться 32 тыс.
Просмотров 20 тыс.
50% 1

We cover how to use macros to make dynamic commands!
🔵 Discord & Other Links: linktr.ee/CloudWolfMC
💻 Website: cloudwolfyt.github.io

Игры

Опубликовано:

 

3 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 135   
@lsk21kr
@lsk21kr 11 месяцев назад
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.
@ramsey2155
@ramsey2155 11 месяцев назад
I guess its only parameters but still cool
@max-wi7xf
@max-wi7xf 11 месяцев назад
what if some random guy makes a game using commandblocks programming?
@casor14
@casor14 11 месяцев назад
FINALLY, waited so long
@CreatorProductionsOriginal
@CreatorProductionsOriginal 11 месяцев назад
@@max-wi7xf won’t be surprised, specially because of how powerful commands are and they are getting more powerful every update basically
@bloosixjr7505
@bloosixjr7505 9 месяцев назад
Now we just need keypress detection, or even better the feature to add keybinds@@CreatorProductionsOriginal
@AgentM124
@AgentM124 11 месяцев назад
Gotta love that syntax highlighting. Showing you all the macros in your script.
@hidd3n_
@hidd3n_ 11 месяцев назад
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
@aslv 11 месяцев назад
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
@enderspider5001 11 месяцев назад
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
@jucanavazreque3429 11 месяцев назад
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 :)
@thefabulousarchive9892
@thefabulousarchive9892 11 месяцев назад
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 😭
@a_soulspark
@a_soulspark 11 месяцев назад
lol, at least if there's anything interesting you found out with your work, it now applies to vanilla Minecraft
@NeedForMotivationn
@NeedForMotivationn 11 месяцев назад
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.
@JustVlad1
@JustVlad1 11 месяцев назад
oh thats neat observation. I always respected letters at the end as it always messes somewhere with item properties, attributes and so on. I often see people don't even use them like "Im gonna set Unbreakeble:0 nbt instead 0b cause it sdoesn't seem to effect anything" but when it comes about var types and how they cannot collide with each other than it as a wack
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
I mentioned it in the video. If you have the type the destination must use the same type. Otw u need to represent it as a string so u often need to do the conversion manually
@legendairy_milk
@legendairy_milk 11 месяцев назад
How exactly do you remove the suffix? I'm trying to replace an old movement_speed attribute search tree that uses a score scaled by 1000, but I'm not sure how to remove the float ('f') suffix when I convert it into nbt. Do I have to store it as a string and use one of those parser datapacks?
@legendairy_milk
@legendairy_milk 11 месяцев назад
Nevermind, I didn't notice the and arguments on data modify storage string
@codexed-i
@codexed-i 11 месяцев назад
MINECRAFT IS NOW OFFICIALLY AN INTERPRETER FOR A FUNCTIONAL PROGRAMMING LANGUAGE OMGGG
@NotABean_
@NotABean_ 11 месяцев назад
man this makes me wanna get into datapacks again!
@swegatron2859
@swegatron2859 11 месяцев назад
Same this removes so many limitations that made me frustrated with datapacks
@Njb-yp4td
@Njb-yp4td 11 месяцев назад
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.
@tanck4933
@tanck4933 11 месяцев назад
So pretty much, it’s like a function with parameters. So cool!
@Kamorzy
@Kamorzy 9 месяцев назад
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.
@a_soulspark
@a_soulspark 11 месяцев назад
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
@dbrighthd
@dbrighthd Месяц назад
this is actually insane. ive been making datapacks for years and this will make this so much easier
@matts7327
@matts7327 11 месяцев назад
Thanks for making these tutorials. It's interesting all the implications of adding macros. Surprised they are letting a macro be a command directly.
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
yeah its very useful for simplification
@Jay1717_
@Jay1717_ 11 месяцев назад
LOVE YOUR VIDEOSSS
@퀌
@퀌 11 месяцев назад
What a favorite update! I think I can make personal storage, personal boss bar, etc! It's surprising!
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
yeah lots of stuff
@FoxworthyGames
@FoxworthyGames 11 месяцев назад
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
@DumpsterFireDev
@DumpsterFireDev 11 месяцев назад
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!
@camdenddelgallo9611
@camdenddelgallo9611 11 месяцев назад
Oh, my god, that is amazing!!!
@PGJVids
@PGJVids 11 месяцев назад
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.
@blackpearl1066
@blackpearl1066 11 месяцев назад
III will always love youuuu!!!!
@anthalinho2097
@anthalinho2097 11 месяцев назад
/random... now variables! It's amazing! I can't put into words what I'm feeling right now, thanks Mojang
@Sloimay
@Sloimay 11 месяцев назад
hi! thanks for making this very informational video this quickly. any idea on how negatively it impacts performance to recompile functions? (for example, how deep can a binary tree go with its performance still being better than macros?)
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
depends on what its doing like a score tree for damage this is much faster
@AgentM124
@AgentM124 11 месяцев назад
Actually it's not json text component. It's NBT so quotes around the keys is optional.
@immanuelexiga2786
@immanuelexiga2786 11 месяцев назад
This new macro feature would go hand-to-hand with custom commands! Fingers crossed!
@villagerzock5468
@villagerzock5468 10 месяцев назад
Finally Updatable Scoreboards
@EreminYaroslav
@EreminYaroslav 11 месяцев назад
Nice
@TheAnnyParker
@TheAnnyParker 10 месяцев назад
I used this in combination with the random command to set a damage range for a custom weapon! Super useful. I have random roll $(min_dmg)..$(max_dmg) The weapon itself has the variable values, then I just run function with entity @s SelectedItem.tag everytime the wepon is triggered (in this case via clicking)
@majorkool
@majorkool 11 месяцев назад
So powerful... Like what the hell!
@pancito3108
@pancito3108 11 месяцев назад
7:36 BOOP
@kokodaisuki
@kokodaisuki 10 месяцев назад
The data that function uses is mixed with the code in the function, this may lead some injection issues (works like SQL injection). luckily normal players don't have permission to run function command by default, otherwise it will cause lots of chaos.
@celestialdodo6465
@celestialdodo6465 11 месяцев назад
I saw something like this on Reddit yesterday
@morphious86.
@morphious86. 11 месяцев назад
i'd leave a comment but i'm actually speechless
@OwlettMC
@OwlettMC 11 месяцев назад
YIPEEEEEEEEE
@simonschnaller3198
@simonschnaller3198 11 месяцев назад
this is amazing, so i dont need to switch to a plugin to get variables
@kazii_the_avali
@kazii_the_avali 11 месяцев назад
im curious on how random command goes when it comes to macros.
@KodeurKubik
@KodeurKubik 8 месяцев назад
Thank you so much! The only thing is, how to add the macros to the "schedule function" command? I think we can't for now :(
@Cl0udWolf
@Cl0udWolf 8 месяцев назад
u can run a macro from a scheduled command
@KodeurKubik
@KodeurKubik 8 месяцев назад
@@Cl0udWolf thanks! Smart :)
@FAMOUS-channel
@FAMOUS-channel 10 месяцев назад
With the teleportation command, can you use the tildes in conjunction with the macros-or does it only work with raw locations and not relative ones?
@Cl0udWolf
@Cl0udWolf 10 месяцев назад
yes the macro puts the string anywhere in your command
@FAMOUS-channel
@FAMOUS-channel 10 месяцев назад
That's crazy!! This is such an exciting snapshot! The attention they're putting towards the advancement of commands is amazing!
@bennutt5050
@bennutt5050 10 месяцев назад
Messed up on my map trying a clone command lol lucky got a back up
@ThijquintNL
@ThijquintNL 11 месяцев назад
I sent all day on my new datapack project with macros. Unfortunetally, my other project, which is my biggest, uses a lot A LOT of string concatination. Now with macros i can compact that datapack massively, but i did do all that work for nothing :(
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
Why would u need a lot of string concatenation. Most things can just use nbt json on a sign and would be more efficient than macros
@bentri7964
@bentri7964 11 месяцев назад
Can you show how to copy text from a book to store in a Macro? I have been trying to figure it out but have been having no luck (it does not help that I don't really understand how to store data and use it elsewhere)
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
u can copy it to a data storage element
@heckerhecker8246
@heckerhecker8246 11 месяцев назад
I'm trying to make incremental max hp using /attribute; I'm close but I get the error Invalid Argument Type: FLOAT, expected compound; do you know a way to fix this ? I'm using a scoreboard to track the max health of an entity; I remove 1 then store in into a storage, and pass it into a function macro
@heckerhecker8246
@heckerhecker8246 11 месяцев назад
Nevermind, I changed it from health, to a.health which was passed in as a compound when using 'a'.
@Lepek8777
@Lepek8777 4 месяца назад
why i cant just use the "score" atributte in json?
@redwolfmedia2281
@redwolfmedia2281 11 месяцев назад
Could you do a tutorial on how players can get custom bossbars and prefixes
@Jomalequi
@Jomalequi 11 месяцев назад
if it helps, as far as i know, bossbar system is not that flexible when comes to multiplayer at least how i have it, you need to do a custom bossbar for each player, I think cloudwokf have a video about that
@nedraw_
@nedraw_ 11 месяцев назад
​@@Jomalequiu can do it easily now with macros
@halbzwilling
@halbzwilling 11 месяцев назад
My retired mapmaking fingers are itching
@Bonfra04
@Bonfra04 11 месяцев назад
well seems a lot like function parameters with extra steps, but yea pretty cool ;)
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
No they are macros. Function parameters are something that can be changed after compile time in coding and u can pass by reference meaning the function can often change the input value but macro inputs cannot be changed during a function it is compiled to be what the input is
@Bonfra04
@Bonfra04 11 месяцев назад
@@Cl0udWolf Oh, sorry i totally missed the compile time thing, yea then sure. Man I need to watch these vides more times XD commands are starting to get more and more like a modern programming language
@fjpdu625
@fjpdu625 11 месяцев назад
Thanks a lot for your video, I don't know how you find that and have you a wiki for seen specific think like how mob spawn function is use in the game... Thanks you in advance for your reply.
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
mcstacker.net is a website generator for commands like /summon
@fjpdu625
@fjpdu625 11 месяцев назад
​@@Cl0udWolf I know this website but I search a better wiki that fandom, for exemple, what is the patern of mob spawn or as carpet, how many time villager take to spawn a irongolem, what is the function of spawning mob for the high 0 to 320 every tick... Because I only find this ressources on youtube videos.
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
@@fjpdu625 most of that info is on the Minecraft wiki you just need to get better at googling it.
@fjpdu625
@fjpdu625 11 месяцев назад
@@Cl0udWolf Okay thanks you and sorry for disturbance
@globbyls4887
@globbyls4887 11 месяцев назад
freaking huge for json parsing
@zapphoenixstudios2065
@zapphoenixstudios2065 11 месяцев назад
First LOL, how many ppl are there in the discord vc 😂😂😂
@Maikeru-sama
@Maikeru-sama 11 месяцев назад
I'm trying to make a stats function that shows your stats in chat, based on a scoreboard. How would I use macros to make them work for several stats/scoreboards?
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
like i said this is one of those cases where macros are not necessary and are hurtful for new players. you can print scoreboards in teh chat using standard /tellraw commands. look up a minecraft tellraw generator it will have the ability to display scores
@0x2480
@0x2480 11 месяцев назад
could this be used to build commands with multiple strings? like, storing 2 strings inside something and combining them into one
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
Yeah but 99% of ppl that ask me if they can combine strings don’t need to combine strings and just don’t know how nbt formatted text works with “interpret”
@0x2480
@0x2480 7 месяцев назад
@@Cl0udWolf isn't that just a tellraw thing?
@thiagokawano1618
@thiagokawano1618 12 дней назад
Is there a way to make the "variable" a piece of text? I'm trying to make a looping music using the /schedule command but i want to find a way to stop the track without having to add several lines of code.
@Cl0udWolf
@Cl0udWolf 12 дней назад
anything that can go in data storage can be used by a macro
@thiagokawano1618
@thiagokawano1618 11 дней назад
@@Cl0udWolf But is there a way to store the name of the function and use it on a macro? I tried but nothing seems to work.
@Cl0udWolf
@Cl0udWolf 11 дней назад
@@thiagokawano1618 you use the data command not execute store. Execute store is only numbers
@thiagokawano1618
@thiagokawano1618 11 дней назад
@@Cl0udWolf I tried but it says I cannot use strings.
@Cl0udWolf
@Cl0udWolf 11 дней назад
@@thiagokawano1618 idk what u tried but my comments aren’t a help chat. It’s 100% possible using /data to copy the string to whatever macro variable you want to use.
@blue_sunset_from_horizon4095
@blue_sunset_from_horizon4095 9 месяцев назад
Is it possible to refer to the rotation coordinations?
@Cl0udWolf
@Cl0udWolf 9 месяцев назад
Yes
@arius1911
@arius1911 11 месяцев назад
With the "data get" command, would it be possible to retrieve the name of a mob and then place it in one of these macros?
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
U would use data modify but ya
@arius1911
@arius1911 11 месяцев назад
@@Cl0udWolf I didn't understand
@amigm
@amigm 6 месяцев назад
Is it possible to make player specific bossbar with macros?
@Cl0udWolf
@Cl0udWolf 6 месяцев назад
yes
@Sw3d15h_F1s4
@Sw3d15h_F1s4 11 месяцев назад
now all we need is a motion command or some way to directly edit player nbt pls mojang
@Sw3d15h_F1s4
@Sw3d15h_F1s4 11 месяцев назад
riding a snowball or other projectile works well for smooth motion but you look like ur sitting down
@Quogle
@Quogle 11 месяцев назад
There's the datapack made by bigpapi13 that creates a motion library using negative explosions, but yeah an official way to do so would be great
@Sw3d15h_F1s4
@Sw3d15h_F1s4 11 месяцев назад
@@Quogle issue with that would be it probably affects other players nearby, so not super useful in multiplayer. no idea how it works in practice tho so might be talking out my ass
@Quogle
@Quogle 11 месяцев назад
@@Sw3d15h_F1s4 yeah I'm honestly not sure either I haven't gotten around to using it that much
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
No it is compatible there r other problems with it tho. Only problem current is that A) quite a few commands happening and B) when u use it there is a little flash of frames which show where u are teleported to temporarily in this case the world spawn
@Zero-4793
@Zero-4793 11 месяцев назад
wish they would just let it interface with scoreboards directly, work like variables. they seem to make everything overly complicated
@soulhakr
@soulhakr 11 месяцев назад
how do you get that debugger window on the right?
@boltstrikes429
@boltstrikes429 11 месяцев назад
You mean the scoreboard? /scoreboard objectives setdisplay sidebar
@sebasco4329
@sebasco4329 11 месяцев назад
i remember you had a server awhile ago, does it exist?
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
no
@commander5263
@commander5263 11 месяцев назад
now i can make my boss that deals more damage when he has less health
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
yeah that would be simple
@keepcalm6612
@keepcalm6612 11 месяцев назад
Hi, is it possible to add animated jumpscares in Minecraft?🤔
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
Depends on what ur vision for it is. Ppl have been doing jump scares for over a decade. /tp an entity in the players face, given them a map which has a creepy picture, put a pumpkin on head with a custom texture for the overlay, etc
@keepcalm6612
@keepcalm6612 11 месяцев назад
@@Cl0udWolf ohh ok. One more question, do u still make horror maps or not anymore? Because ur horror maps is so cool
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
@@keepcalm6612 not really
@keepcalm6612
@keepcalm6612 11 месяцев назад
@@Cl0udWolf so u still making horror maps but when you're free or smth?
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
@@keepcalm6612 not really as in if I feel motivated to I might but otherwise no
@bentanner9448
@bentanner9448 6 месяцев назад
Wait so you’re telling me that my whole teleport to scoreboard values system I created a few months ago was pointless and I could have just used macros
@Cl0udWolf
@Cl0udWolf 6 месяцев назад
Even before macros it was like 4 commands
@bentanner9448
@bentanner9448 6 месяцев назад
yeah but I was facing chunk loading issues trying to get it to work when I went tens of thousands of blocks away . At least now I dont have to worry about markers and all that. Anyway thank you for teaching me how to use macros because they're very useful!
@Cl0udWolf
@Cl0udWolf 6 месяцев назад
@@bentanner9448 that’s still just execute as (marker) run function data modify entity @s Pos set from … tp @p @s
@eineatombombe
@eineatombombe 11 месяцев назад
They really adding macros before loops
@imbass8151
@imbass8151 11 месяцев назад
mc-build brutha
@eineatombombe
@eineatombombe 11 месяцев назад
@@imbass8151 yeah but that's not official
@NeedForMotivationn
@NeedForMotivationn 11 месяцев назад
I mean you can still create loops by putting the function itself in it, but yeah that would make it a lot easier.
@TheRCvie
@TheRCvie 11 месяцев назад
I understand it's powerful for those that know but without a background in programing this means nothing to me.
@Cl0udWolf
@Cl0udWolf 11 месяцев назад
I think I made it pretty clear in the video. U can pass a function something and it sticks it anywhere you want in a command
@TheRCvie
@TheRCvie 11 месяцев назад
@@Cl0udWolf inserting, compiling, recompiling, are not terms I use in datapacks, although I understand it's used in more complex programing. Macro term I've only used in regards to key binding. I've barely scratched the surface on using data storage. As much as I want to understand, I'm not seeing the command connections or file structure you do.
@Thomanski
@Thomanski 11 месяцев назад
VARIABLES??????????
@HeDeAnTheonlyone
@HeDeAnTheonlyone 11 месяцев назад
you don't need the argument key in " "
@cswertwertwert
@cswertwertwert 11 месяцев назад
Fans: Can we have variables that aren't scoreboard values, equations and logic to do complex calculations, or anything else that resembles a normal programming language? Mojang: Ooh no. Here is a complex feature to add on top of the already nonsensical system. Fans: Thanks... I understand they are trying to make things easier, but why not just add things people are already familiar with? At least this is a step in the right direction, and it will make things just that little bit easier.
@Dariussica1
@Dariussica1 11 месяцев назад
At this point just go make mods
@Dryym
@Dryym 11 месяцев назад
My thoughts exactly. Getting into minecraft commands is a pain. Prior programming knowledge doesn't really help you all that much, And once you learn it, You can't really apply those skills anywhere else. If we had something like Scarpet in vanilla, I think that would be a much better system for everyone. Especially when moving too and from more traditional programming languages.
Далее
Macro Selectors in Minecraft [Snapshot 23w33a]
9:16
I Added Infinite Crafting to Minecraft (with AI)
13:08
Просмотров 898 тыс.
3.5M❤️ #thankyou #shorts
00:16
Просмотров 808 тыс.
Frank Now VS Then Edit 🥵| #brawlstars #shorts
00:18
Просмотров 895 тыс.
Are Shaders Without Mods Possible?
8:17
Просмотров 912 тыс.
I Asked AI To Make Redstone For Me
11:16
Просмотров 6 млн
Hit Detection With Commands | MCPE Tutorial
7:06
Просмотров 3,2 тыс.
I was wrong. Right Click Detection is here. For real.
10:24
I added your DUMB ideas to Minecraft
13:53
Просмотров 1,1 млн
What makes a mod vanilla style?
14:38
Просмотров 2,6 млн
I Paid Game Developers on Fiverr to Make Minecraft
11:13
How to 100% Minecraft
16:05
Просмотров 1,9 млн
How to Optimize Your Datapack
9:13
Просмотров 20 тыс.
NOT STOPPING TIL NEW WORLD RECORD
10:3:25
Просмотров 2,2 млн
МОИ ДРУЗЬЯ - ОЛЕНИ :(
17:21
Просмотров 187 тыс.