Detecting player sneaks

Started by supersamisega on Wed, 12/28/2016 - 16:45

Topic category: Help with modding (Java Edition)

Last seen on 02:03, 29. Jun 2020
Joined Oct 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Detecting player sneaks
Wed, 12/28/2016 - 16:45

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

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 02:03, 29. Jun 2020
Joined Oct 2015
User points:

User statistics:

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

@#1 Thanks

Last seen on 01:12, 27. Aug 2019
Joined Sep 2017
User points:

User statistics:

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

@Nuparu00

Last seen on 01:12, 27. Aug 2019
Joined Sep 2017
User points:

User statistics:

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

@Nuparu00

Last seen on 01:12, 27. Aug 2019
Joined Sep 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 19:55, 28. Sep 2020
Joined Jun 2016
User points:

User statistics:

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

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