diff --git a/assets/faqs/cardinal direction align/cardinal direction align.md b/assets/faqs/cardinal direction align/cardinal direction align.md new file mode 100644 index 0000000..4959fd6 --- /dev/null +++ b/assets/faqs/cardinal direction align/cardinal direction align.md @@ -0,0 +1,7 @@ +## {anchor} Округление поворота сущности к её ближайшей стороне света с помощью ОДНОЙ команды +Запускаем эту команду от лица нужной нам сущности: +```ansi +execute at @s positioned 0. 0 0. rotated ~45 0 positioned ^ ^ ^-.5 align xz facing -.5 0 -.5 rotated ~-45 0 positioned as @s run tp @s ~ ~ ~ ~ ~``` +Для 1.21.2+: +```ansi +execute at @s positioned 0. 0 0. rotated ~45 0 positioned ^ ^ ^-.5 align xz facing -.5 0 -.5 rotated ~-45 0 run rotate @s ~ ~``` \ No newline at end of file diff --git a/cogs/faqs/faqs.json b/cogs/faqs/faqs.json index f0be743..c9c4df2 100644 --- a/cogs/faqs/faqs.json +++ b/cogs/faqs/faqs.json @@ -42,5 +42,6 @@ "inlay hints": ["inlay hint", "hint", "inlay", "инлэй", "инлайн","инлайн подсказки","подсказки инлайн","подсказки внутри команд","inlay hints","hints","инлайны подсказки","подсказки инлайновые","подсказки"], "ПКМ детект": ["right click detect", "rc detect", "rc", "пкм", "пкм детект в дп", "детект пкм", "детект правой кнопки мыши", "дп пкм", "правая кнопка мыши детект", "кс вуеусе", "датапак пкм детект", "методы определения пкм", "райт клик"], "pack.mcmeta фильтры": ["пак мсмета фильтры","фильтры пак мсмета","mcmeta filters","pack.mcmeta filters","мсмета фильтры","фильтры мсметы","фильтры","filters"], - "pack.mcmeta оверлеи": ["pack.mcmeta overlays","mcmeta overlays","pack.mcmeta оверлеи","mcmeta оверлеи","оверлеи пак мсмета","overlays","оверлеи","пакмсмета оверлеи"] + "pack.mcmeta оверлеи": ["pack.mcmeta overlays","mcmeta overlays","pack.mcmeta оверлеи","mcmeta оверлеи","оверлеи пак мсмета","overlays","оверлеи","пакмсмета оверлеи"], + "cardinal direction align": ["выровнять по сторонам света","стороны света","выровнять по кардинальным направлениям","кардинальные направления","align cardinal directions","align cardinal","align directions","directions align","directions align to cardinals","округление поворота к сторонам света","rounding rotation to cardinal directions","rounding rotation to cardinal","rounding rotation to directions","rotation align","rotation align to cardinals"] }