Detecting player sneaks

Started by supersamisega on

Topic category: Help with Minecraft modding (Java Edition)

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?

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()

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

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

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

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?

 

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?