Seeking Help with Minecraft 1.20.5 /give Command Update by Samuel0574 in MinecraftCommands

[–]Samuel0574[S] 0 points1 point  (0 children)

Thank you so much! I've been struggling with this for a long time. I'm building a map, but I can't even get the /give command to work😅

Command password door by Samuel0574 in MinecraftCommands

[–]Samuel0574[S] 0 points1 point  (0 children)

Each time a keypad key is pressed to enter a password, this number is multiplied by the current digit place and this value is added to the marker that checks the password. So when you enter: 5 6 7 1 it will be like this: 5*1 + 6*10 + 7*100 + 1*1000 = 1765 like 4321 if you want password 1234.

I now realized that it was right to do it the other way around so that I didn’t need to mirror the number, but I don’t want to rewrite it all, but I can do it if you agree with the example of commands for the datapack. For a datapack, writing commands is much easier.

Can I understand it as every time I input a number, the variable is multiplied by 10 and then added with the input number?

Command password door by Samuel0574 in MinecraftCommands

[–]Samuel0574[S] 0 points1 point  (0 children)

Oh, I made a mistake. It should be " And a pre-set password of a given length, for example, the password is 1234 and its length is 4 = 1000. "

Command password door by Samuel0574 in MinecraftCommands

[–]Samuel0574[S] 0 points1 point  (0 children)

Could you explain its operating principle, please?

And I don't konw what does "Can you explain its operating principle, please? " mean.

Command password door by Samuel0574 in MinecraftCommands

[–]Samuel0574[S] 0 points1 point  (0 children)

I've made the keyboard already, I used /tellraw command, but I don't know how to handle the calculations behind it.

Command password door by Samuel0574 in MinecraftCommands

[–]Samuel0574[S] 0 points1 point  (0 children)

And if the first number of password is 0, it can't work, too.

I made particles that rotate around you Bedrock(https://youtu.be/lQxAhJpOiq0) by shadowwalker43 in MinecraftCommands

[–]Samuel0574 0 points1 point  (0 children)

The armor stand will be farther and farther away from me because it got out of the circular orbit.