Detecting player sneaks

Started by supersamisega on

Topic category: Help with modding (Java Edition)

Last seen on 03:29, 18. Feb 2024
Joined Oct 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detecting player sneaks

How do i imput a custom code if a player sneaks?

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In code: if(player.isSneaking
Wed, 12/28/2016 - 17:21

In code: if(player.isSneaking()){}
In event system(theoretically)entityPlayer.isSneaking()

Last seen on 03:29, 18. Feb 2024
Joined Oct 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:In code: if(player.isSneaking
Thu, 12/29/2016 - 14:54

@#1 Thanks

Last seen on 21:05, 30. May 2021
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i add Sneak Detection to a item
Fri, 10/13/2017 - 00:33

@Nuparu00

Last seen on 21:05, 30. May 2021
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also How do i add custom potion effects
Fri, 10/13/2017 - 02:08

@Nuparu00

Last seen on 21:05, 30. May 2021
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:In code: if(player.isSneaking
Fri, 10/13/2017 - 02:11

@#1 How do i add custom potion effects and how do i add a sneak detection for items?

 

Last seen on 17:49, 25. Mar 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:In code: if(player.isSneaking
Fri, 10/13/2017 - 05:32

Why theorically? It doesn't work in the events?