Player Detection

Started by CameronMods on

Topic category: Help with MCreator software

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.

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

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?

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

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.

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.

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?

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.

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?

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

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