Перейти к содержанию

"How to apply a command to a clock item."


Рекомендуемые сообщения

В теме 4 сообщения

I have come up with an idea for a map, but I couldn't implement it because I'm not strong in command blocks. I want to make it so that when a player holds a clock in their active hand and presses the mouse button (either right or left, it doesn't matter as long as it works), their Y-coordinate increases by +20 blocks, and upon subsequent pressing of the same clock, their Y-coordinate decreases by -20 blocks, and so on. It is essential that this works specifically for the player who activated the command.

I thought of implementing this through a scoreboard, like when a player with a clock in hand presses the mouse button, they are assigned scoreboard 1, and this player is teleported up by 20 blocks. Upon subsequent mouse clicks with the same clock, they are assigned scoreboard 2, and this player is teleported down by 20 blocks, after which the scoreboard is reset specifically for this player. I wanted it to work consistently, but I couldn't make it happen.

Minecraft version 1.18.2, Java.

Ссылка на комментарий
Поделиться на другие сайты

image.png.8ff19e97d99f0375349861bd4e0c7f11.png

4 часа назад, Виноград сказал:

Хай, рашн плиз, ай донт андерстенд. Айнс цвай полицай пук пук верштейе нихт

 

Ссылка на комментарий
Поделиться на другие сайты

3 часа назад, Виноград сказал:

гений, зачем сразу душнить? я не обязан переводить. это русскоязычный форум

ты так же не обязан был писать, то, что не обязан был переводить это 😉

Ссылка на комментарий
Поделиться на другие сайты

15 часов назад, Daliklon сказал:

I have come up with an idea for a map, but I couldn't implement it because I'm not strong in command blocks. I want to make it so that when a player holds a clock in their active hand and presses the mouse button (either right or left, it doesn't matter as long as it works), their Y-coordinate increases by +20 blocks, and upon subsequent pressing of the same clock, their Y-coordinate decreases by -20 blocks, and so on. It is essential that this works specifically for the player who activated the command.

I thought of implementing this through a scoreboard, like when a player with a clock in hand presses the mouse button, they are assigned scoreboard 1, and this player is teleported up by 20 blocks. Upon subsequent mouse clicks with the same clock, they are assigned scoreboard 2, and this player is teleported down by 20 blocks, after which the scoreboard is reset specifically for this player. I wanted it to work consistently, but I couldn't make it happen.

Minecraft version 1.18.2, Java.

 Here to you save world with command blocks (Скинул файл мира с КБ): SAVE WORLD

Ссылка на комментарий
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти
  • Последние посетители   0 пользователей онлайн

    • Ни одного зарегистрированного пользователя не просматривает данную страницу
×
×
  • Создать...