Much progress!
Only thing I can't figure out is the following:
- Why it does not show the centerprint
- Why it does not add the resources to the client after it is mined
Thanks.
Ok, actually look at your code please, notice you have
commandToClient(%this,'centerPrint',"\c6You swing your pick at the ore.",3);and
messageClient(%this,'',"\c3You have mined some \c6" @ %col.getDataBlock().oreName @ "\c3.");and a couple other things that use
%this.
now look at this
SkillPickaxeProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)%this is your skillpickaxeprojectile, which isn't a client, yikes!
try instead the following,
%client = %obj.client; and also under that do
echo("Client object name => "@%client.name);to see if i'm correct, which i think i am.