Make player press a keybind or key

Started by lactrosepvp on

Topic category: Advanced modding

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make player press a keybind or key

What i want to do is make the player shift with a procedure without them physically holding shift themselves, someone help

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It looks like you can use…
Sat, 07/01/2023 - 19:49

It looks like you can use entity.setPose(net.minecraft.world.entity.Pose.CROUCHING). (You can put this in a "Custom code snippet" block.) I don't know if this is reset by the game however.

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
" error: package net…
Sun, 07/02/2023 - 20:36

" error: package net.minecraft.world.entity does not exist " 

it dont work bro or if it does and im missing something tell me

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What?   You have some…
Mon, 07/03/2023 - 01:11

What?

 

You have some problems... Where did you see this message? Can you send me a screenshot of your code?