コード例 #1
0
        public override void OnBlockBroken(IPlayer byPlayer = null)
        {
            if (burning)
            {
                Vec3d dpos = Pos.ToVec3d().Add(0.5, 0.5, 0.5);
                bloomeryInv.DropSlots(dpos, new int[] { 0, 2 });


                breakSparks.MinPos = Pos.ToVec3d().AddCopy(dpos.X - 4 / 16f, dpos.Y - 4 / 16f, dpos.Z - 4 / 16f);
                Api.World.SpawnParticles(breakSparks, null);
            }
            else
            {
                bloomeryInv.DropAll(Pos.ToVec3d().Add(0.5, 0.5, 0.5));
            }
        }