Player Detection

Started by CameronMods on

Topic category: Help with MCreator software

Last seen on 13:38, 8. Jan 2017
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player Detection

How do I test if somebody is 5 blocks away from my modded block? For example, if the player comes 5 blocks away from my modded block he will be affected by a potion.

Last seen on 17:47, 12. May 2018
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it has to be coded
Mon, 12/12/2016 - 17:49

it has to be coded

Last seen on 13:38, 8. Jan 2017
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you tell me the code
Mon, 12/12/2016 - 18:09

can you tell me the code please?

Last seen on 17:47, 12. May 2018
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I do​n't really know it,
Mon, 12/12/2016 - 20:17

I do​n't really know it, search it on youtube maybe? Idk really but it's something like ifEntityPlayer{r=RADIUS}{EVENT}() i dont know thing like that

Last seen on 13:38, 8. Jan 2017
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what would I search up? I
Mon, 12/12/2016 - 20:35

what would I search up? I tried a lot of things like "player radius" and such. Nothing came up though.

Last seen on 17:47, 12. May 2018
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:what would I search up? I
Mon, 12/12/2016 - 21:54

@#4 ​search "minecraft mod tutorial" you will probably find something you can use.

Last seen on 13:38, 8. Jan 2017
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can anyone tell me the code?
Tue, 12/13/2016 - 01:53

Can anyone tell me the code?

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
AxisAlignedBB + TileEntity is
Tue, 12/13/2016 - 06:08

AxisAlignedBB + TileEntity is what are you looking for.

Last seen on 13:38, 8. Jan 2017
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks dude
Tue, 12/13/2016 - 21:57

thanks dude

Last seen on 13:38, 8. Jan 2017
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
where do I put axisaligned +
Tue, 12/13/2016 - 21:59

where do I put axisaligned + tileentity?

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No , this is not code, that
Tue, 12/13/2016 - 23:41

No , this is not code, that are the things that you need to make. 
1st) Making a class that extends TileEntity
2nd) asign the TileEntity to your block
3rd) In update() method of the TileEntity create AxisAlignedBB (with size from -5,-5,-5 to 5,5,5) and check if in the box is any instance of EntityPlayer

Last seen on 01:11, 18. Nov 2022
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i'm confused  
Sun, 10/07/2018 - 05:29

i'm confused