MonitoringMinecraft MonitoringMinecraft

WASD Detection

Датапак Datapack

Датапак для Майнкрафт с предикатами на определение нажатия клавиш WASD для команд и других датапаков.

758 скачиваний 5 подписчиков
Оцените первым

WASD Detection

Accurate WASD detection for Minecraft datapacks.

Latest Data Pack version

1.4

Compatible Minecraft Versions

Java Edition 1.20.2 - 1.21 (Versions of the pack for 1.20.1 and 1.19.2 also available in versions)

How to Use the Data pack

(Full video explaination https://www.youtube.com/watch?v=DsjAlwNN2AQ)

The WASD detection works as an in-game predicate that can be accessed through /execute commands, and or player selectors.

/execute as @a if predicate wasd:w run say pressed w
/execute as @a[predicate=wasd:w] run say pressed w

Either of these will result in a message in chat saying "pressed w" when the player walks forward.

List of preciates

(All of these will have a prefix of wasd:)

wasd:w = if the player walks forward

wasd:a = if the player walks left

wasd:s = if the player walks right

wasd:d = if the player walks backward

wasd:moving = if the player pressed any of the four directions

wasd:space = if the player moves upward

wasd:falling = if the player moves downward

wasd:shift = if the player presses SHIFT

Lock the player's movement

If you want to lock the player from moving you will need to run this command:

/execute as @a run function wasd:lock

This will lock all players at their current positions.

If you want to lock the player at a specific location, then run this command:

/execute as @a postitioned <XYZ> rotated <Y ROTATION> <X ROTATION> run function wasd:lock

*Replacing <XYZ> with your desired coordinates, and <Y ROTATION> and <X ROTATION> with your desired rotations.

To unlock the players, run:

/execute as @a run function wasd:unlock

Installation

Method 1 (Pre-made world)

  1. Locate to your .minecraft/saves/<worldname>/datapacks folder.
  2. Paste the .zip file you installed into this folder.
  3. Enter your Minecraft world and type /reload.
  4. A message should pop up that says "Datapack Installed".

Method 2 (Create new world)

  1. In the Create new world screen, click the "Datapacks" button
  2. Drag and drop the .zip file you downloaded into the game window.
  3. Apply the datapack.~~~~
  4. Create new world.
Смотри также

Похожие подборки датапаки — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
864 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
Minestory
4 онлайн
1.21 — 26.2 версия
Выживание • Экономика • Кланы • Приваты • Ивенты • PVP • Работа
BULLCRAFT
BULLCRAFT Java + BE
96 онлайн
26.2 версия
Анархия! PvP | Работают поршни и вагонетки
Battle Mine
Battle Mine Java + BE
3 онлайн
1.21.4 — 26.2 версия
ОТКРЫТИЕ! 20 + различных ивентов, 10+ различных боссов, много интересных механник
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.4. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат