Started by
CameronMods
on
Topic category: Help with MCreator software
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.
Topic category: Help with MCreator software
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.
it has to be coded
can you tell me the code please?
I don'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
what would I search up? I tried a lot of things like "player radius" and such. Nothing came up though.
@#4 search "minecraft mod tutorial" you will probably find something you can use.
Can anyone tell me the code?
AxisAlignedBB + TileEntity is what are you looking for.
thanks dude
where do I put axisaligned + tileentity?
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
i'm confused