Disclaimer: I'm doing tests assuming that the player is an infinately small point yet the object has mass. This can be modified if you do several tests at different locations on the player (like at all vertices).
Box:
predefine the box depth#, width#, and height# values.
px#,py#,pz# - player x,y,z
ox#,oy#,oz# - object x,y,z
if px#>ox#-width#/2
and px#<ox#+width#/2
and py#>oy#-height#/2
and py#<oy#+height#/2
and pz#>oz#-depth#/2
and pz#<oz#+depth#/2
reposition object stuff...
endif
This can also be expanded to test each axis independently so that you can implement snap-to and/or sliding collision.